- </span>
- | <a href="{% url 'social_my_shelf' %}" id="user-shelves-link">{% trans "My shelf" %}</a>
- {% if user.is_staff %}
- | <a href="/admin/">{% trans "Administration" %}</a>
- {% endif %}
- | <a href="{% url 'logout' %}?next={% block logout %}{{ request.get_full_path }}{% endblock %}">{% trans "Logout" %}</a>
- {% else %}
- <a href="{% url 'login' %}?next={{ request.path }}"
- id="login" class="ajaxable">
- {% trans "Sign in" %}</a>
- /
- <a href="{% url 'register' %}?next={{ request.path }}"
- id="register" class="ajaxable">
- {% trans "Register" %}</a>
- {% endif %}
+ </span> | <a href="{% url 'social_my_shelf' %}" id="user-shelves-link">{% trans "My shelf" %}</a>
+ {{ user_username.endif }}
+ {{ user_is_staff.if }} | <a href="/admin/">{% trans "Administration" %}</a>
+ {{ user_is_staff.endif }}
+ {{ user_username.if }} | <a href="{% url 'logout' %}?next={% block logout %}{{ request.get_full_path }}{% endblock %}">{% trans "Logout" %}</a>
+ {{ user_username.else }}
+ <a href="{% url 'login' %}?next={{ request.path }}" id="login" class="ajaxable">{% trans "Sign in" %}</a> / <a href="{% url 'register' %}?next={{ request.path }}" id="register" class="ajaxable">{% trans "Register" %}</a>
+ {{ user_username.endif }}