{% load i18n %}
{% load tags %}
{% load common_tags %}

<li class="d-inline d-lg-none username">
    {{ request.user.userprofile.get_display_name }}
</li>

<li class="d-inline d-lg-none username-indexes">
    {% if request.user.is_authenticated and not request.user.userprofile.exclude_from_competitions %}
        <span id="astrobin-index">
            {{ request.user.userprofile.image_index|default:"0"|floatformat:2 }}
        </span> &middot;

        <span id="contribution-index">
            {{ request.user.userprofile.contribution_index|default:"0"|floatformat:2 }}
        </span>
    {% endif %}
</li>

<li>
    <a href="{% app_redirection_service '/subscriptions/options' %}">
        <i class="icon-asterisk"></i>
        {% trans "Subscription plans" %}
    </a>
</li>

<li>
    <a href="{% url 'image_upload' %}">
        <i class="icon-upload-alt"></i>
        {% trans "Upload" %}
    </a>
</li>

<li class="divider"></li>

<li>
    <a href="{% url 'user_page' request.user.username %}">
        <i class="icon-picture"></i>
        {% trans "Public Gallery" %}
    </a>
</li>

<li>
    <a href="{% url 'user_page' request.user.username %}?staging">
        <i class="icon-lock"></i>
        {% trans "Staging Area" %}
    </a>
</li>

<li>
    <a href="{% url 'user_page_bookmarks' request.user.username %}">
        <i class="icon-bookmark"></i>
        {% trans "Bookmarks" %}
    </a>
</li>

<li class="divider"></li>

<li>
    <a href="{% url 'messages_inbox' %}">
        <i class="icon-inbox"></i>
        {% trans "My messages" %}
    </a>
</li>

<li>
    <a href="{% url 'user_page_api_keys' request.user.username %}">
        <i class="icon-key"></i>
        {% trans "API Keys" %}
    </a>
</li>

<li class="divider"></li>

<li>
    <a href="{% url 'profile_edit_basic' %}">
        <i class="icon-edit"></i>
        {% trans "My settings" %}
    </a>
</li>

<li>
    <a href="#" class="toggle-high-contrast-theme">
        <i class="icon-adjust"></i>

        {% use_high_contrast_theme as use_high_contrast_theme %}
        {% if use_high_contrast_theme %}
            {% trans "Disable high contrast theme" %}
        {% else %}
            {% trans "Enable high contrast theme" %}
        {% endif %}
    </a>
</li>

<li>
    <a data-no-instant href="{% url 'auth_logout' %}">
        <i class="icon-signout"></i>
        {% trans "Logout" %}
    </a>
</li>
