<li><aclass="button"href="{% url 'profile' %}">{% blocktrans with user.get_profile.get_user_display as name %}Logged in as {{ name }}{% endblocktrans %}</a></li>
<li><aclass="button"href="{% url 'logout' %}">{% trans "Logout" %}</a></li>
<li><aclass="button"id="profile-button"href="{% url 'profile' %}">{% blocktrans with user.get_profile.get_user_display as name %}Logged in as {{ name }}{% endblocktrans %}</a></li>
<li><aclass="button"id="logout-button"href="{% url 'logout' %}">{% trans "Logout" %}</a></li>
{% else %}
{% if registration_open %}
<li><aclass="button"href="{% url 'register' %}">{% trans "Register" %}</a></li>
<li><aclass="button"id="register-button"href="{% url 'register' %}">{% trans "Register" %}</a></li>
{% endif %}
<li><aclass="button"href="{% url 'login' %}{% if not skip_next %}?next={{ current_url }}{% endif %}">{% trans "Login" %}</a></li>
<li><aclass="button"id="login-button"href="{% url 'login' %}{% if not skip_next %}?next={{ current_url }}{% endif %}">{% trans "Login" %}</a></li>