Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
68 lines (66 sloc) 2.65 KB
<ul>
<li class="nav-item dropdown align-self-center">
{% if active_organization %}
<a href="#" class="nav-link dropdown-toggle" style="padding-top:0;padding-bottom:0;" data-toggle="dropdown" role="button"
aria-haspopup="true" aria-expanded="false">
<span class="menubar-label-title">
<span data-trnc data-trnc-len="8">{{active_organization.printable_name}}</span> <span class="caret"></span>
</span>
<span class="menubar-label-subtitle">
{{request.user.username}}
</span>
</a>
{% else %}
<a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown" role="button"
aria-haspopup="true" aria-expanded="false">
<span class="menubar-label">
{{request.user.username}} <span class="caret"></span>
</span>
</a>
{% endif %}
<ul class="dropdown-menu" role="menu">
{% if top_accessibles|length > 0 %}
<li class="dropdown-label" role="presentation">
{{request.user.username}}
</li>
{% endif %}
<li role="presentation">
<a id="authenticated-user" class="dropdown-item" href="{{request|url_profile}}" role="menuitem" tabindex="-1">
{% trans %}Profile{% endtrans %}
</a>
</li>
<li role="presentation">
<a class="dropdown-item" href="{{request|url_logout}}?next={{request|url_home}}" role="menuitem" tabindex="-1">
{% trans %}Sign out{% endtrans %}
</a>
</li>
{% if top_accessibles|length > 0 %}
{% for accessible in top_accessibles %}
<li class="dropdown-divider" role="separator"></li>
<li class="dropdown-label" role="presentation">
<span>{{accessible.printable_name}}</span>
<span class="dropdown-label-role">{{accessible.role_title}}</span>
</li>
<li role="presentation">
<a class="dropdown-item" href="{{accessible.app_location}}" role="menuitem" tabindex="-1">
{% trans %}Home{% endtrans %}
</a>
</li>
<li role="presentation">
<a class="dropdown-item" href="{{accessible.settings_location}}" role="menuitem" tabindex="-1">
{% trans %}Settings{% endtrans %}
</a>
</li>
{% endfor %}
{% endif %}
</ul>
</li>
<li class="nav-item align-self-center">
<a class="nav-link" title="{% trans %}Click Here to sign out{% endtrans %}" href="{{'/logout/'|site_prefixed}}">
<span class="d-none d-sm-inline-block mr-sm-2">
{% trans %}Sign out{% endtrans %}
</span>
<span class="fa fa-sign-out fa-lg"></span>
</a>
</li>
</ul>
You can’t perform that action at this time.