Skip to content
This repository
tree: e61186657a
Fetching contributors…

Cannot retrieve contributors at this time

file 21 lines (20 sloc) 1.022 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
{% load i18n %}
<ul class="secondary-nav">
    <li>
    {% if user.is_authenticated %}
        <a href="#" class="menu">{{ user }}</a>
        <ul class="menu-dropdown">
            {% if user.is_staff %}
                <li><a href="/admin/">Admin</a></li>
                <li><a href="{% url userena_profile_list %}"><span>{% trans 'All profiles' %}</span></a></li>
                <li><a href="{% url userena_umessages_list %}"><span>{% trans 'Messages' %}</span></a></li>
            {% endif %}
            
            <li><a href="{% url userena_profile_detail user.username %}"><span>{% trans 'Account' %} ({{ user.username }})</span></a></li>
            <li class="divider"></li>
            <li><a href="{% url userena_signout %}"><span>{% trans 'Signout' %}</span></a></li>
        </ul>
    {% else %}
    <li><a href="{% url userena_signin %}"><span>{% trans 'Log in' %}</span></a></li>
    <li><a href="{% url userena_signup %}"><span>{% trans 'Sign up' %}</span></a></li>
    {% endif %}
</ul>
Something went wrong with that request. Please try again.