|
1 | | -{% load wg_menu %} |
2 | | -{% load streams_menu %} |
3 | | -{% load ietf_filters community_tags %} |
| 1 | +{% load ietf_filters community_tags wg_menu streams_menu %} |
4 | 2 |
|
5 | | -<li {% if flavor == "top" %}class="dropdown"{% else %}class="nav-header"{% endif %}> |
6 | | - {% if flavor == "top" %}<a href="#" class="dropdown-toggle" data-toggle="dropdown">{% endif %} |
7 | | - {#<span class="fa fa-user"></span>#} |
8 | | - {% if user.is_authenticated %} {{ user }} {% else %} User {% endif %} |
9 | | - {% if flavor == "top" %} |
10 | | - </a> |
11 | | - <ul class="dropdown-menu" role="menu"> |
12 | | - {% endif %} |
13 | | - {% if request.get_full_path == "/accounts/logout/" %} |
14 | | - <li><a rel="nofollow" href="/accounts/login{% if "/accounts/logout/" not in request.get_full_path %}/?next={{request.get_full_path|urlencode}}{% endif %}">Sign in</a></li> |
15 | | - {% else %} |
16 | | - {% if user.is_authenticated %} |
17 | | - <li><a rel="nofollow" href="/accounts/logout/" >Sign out</a></li> |
18 | | - <li><a rel="nofollow" href="/accounts/profile/">Edit profile</a></li> |
19 | | - {% else %} |
20 | | - <li><a rel="nofollow" href="/accounts/login/?next={{request.get_full_path|urlencode}}">Sign in</a></li> |
21 | | - {% endif %} |
22 | | - {% endif %} |
23 | | - |
24 | | - <li><a href="{% url "account_index" %}">{% if request.user.is_authenticated %}Manage account{% else %}New account{% endif %}</a></li> |
25 | | - <li><a href="{%url "ietf.cookies.views.settings" %}" rel="nofollow">Settings</a></li> |
26 | | - |
27 | | - {% if user|has_role:"Area Director" %} |
28 | | - {% if flavor == "top" %}<li class="divider hidden-xs"></li>{% endif %} |
29 | | - <li {%if flavor == "top" %}class="dropdown-header hidden-xs"{% else %}class="nav-header"{% endif %}>AD dashboard</li> |
30 | | - <li><a href="{% url "docs_for_ad" name=user.person.full_name_as_key %}">My docs</a></li> |
31 | | - <li><a href="{% url "ietf.iesg.views.agenda_documents" %}">Next telechat</a></li> |
32 | | - <li><a href="{% url "ietf.iesg.views.discusses" %}">Discusses</a></li> |
33 | | - <li><a href="{% url "ietf.iesg.views.milestones_needing_review" %}">Milestone review</a></li> |
34 | | - {% endif %} |
35 | | - |
36 | | - {% if user|has_role:"Secretariat" %} |
37 | | - {% if flavor == "top" %}<li class="divider hidden-xs"></li>{% endif %} |
38 | | - <li {%if flavor == "top" %}class="dropdown-header hidden-xs"{% else %}class="nav-header"{% endif %}>IETF secretariat</li> |
39 | | - <li><a href="/admin/iesg/telechatdate/">Telechat dates</a></li> |
40 | | - <li><a href="/admin/iesg/telechatagendaitem/">Management items</a></li> |
41 | | - <li><a href="{% url "ietf.iesg.views.milestones_needing_review" %}">Milestones</a></li> |
42 | | - <li><a href="{% url "ietf.sync.views.discrepancies" %}">Sync discrepancies</a> |
43 | | - {% endif %} |
44 | | - |
45 | | - {% if user|has_role:"IANA" %} |
46 | | - {% if flavor == "top" %}<li class="divider hidden-xs"></li>{% endif %} |
47 | | - <li {%if flavor == "top" %}class="dropdown-header hidden-xs"{% else %}class="nav-header"{% endif %}>IANA</li> |
48 | | - <li><a href="{% url "ietf.sync.views.discrepancies" %}">Sync discrepancies</a></li> |
49 | | - {% endif %} |
50 | | - |
51 | | - {% if user|has_role:"RFC Editor" %} |
52 | | - {% if flavor == "top" %}<li class="divider hidden-xs"></li>{% endif %} |
53 | | - <li {%if flavor == "top" %}class="dropdown-header hidden-xs"{% else %}class="nav-header"{% endif %}>RFC Editor</li> |
54 | | - <li><a href="{% url "ietf.sync.views.discrepancies" %}">Sync discrepancies</a></li> |
55 | | - {% endif %} |
56 | | -{% if flavor == "top" %}</ul>{% endif %} |
| 3 | +{% if flavor != "top" %} |
| 4 | + {% include "base/menu_user.html" %} |
| 5 | +{% endif %} |
57 | 6 |
|
58 | 7 | <li {% if flavor == "top" %}class="dropdown"{% else %}class="nav-header"{% endif %}> |
59 | 8 | {% if flavor == "top" %}<a href="#" class="dropdown-toggle" data-toggle="dropdown">{% endif %} |
|
151 | 100 | <li><a href="/liaison/">Liaison statements</a></li> |
152 | 101 | <li><a href="/iesg/agenda/">IESG agenda</a></li> |
153 | 102 | {% if flavor == "top" %}</ul>{% endif %} |
| 103 | + |
| 104 | +{% if flavor == "top" %} |
| 105 | + {% include "base/menu_user.html" %} |
| 106 | +{% endif %} |
0 commit comments