<!-- user_tabs.html -->
<div class="tabBar tabBar-profile">
    <div class="tabsC">
        <a id="stats" {% if tab_name=="stats" %}class="on first"{%else%}class="first"{% endif %}
            href="{{ url('user_profile', view_user.id,  view_user.username|slugify) }}?sort=stats"
        ><span>{% trans %}overview{% endtrans %}</span></a>
        {% if request.user.pk == view_user.pk or request.user|can_moderate_user(view_user) %}
            <a id="inbox" {% if tab_name=="inbox" %}class="on"{% endif %}
                href="{{ url('user_profile', view_user.id,  view_user.username|slugify) }}?sort=inbox"
            ><span>{% trans %}notifications{% endtrans %}</span></a>
            {#
            <a {% if tab_name == "messages" %} class="on"{% endif %} href="{{ request.user.get_absolute_url() }}?sort=inbox&section=messages"
            ><span>{% trans %}private messages{% endtrans %}</span></a>
            #}
            {% if settings.MULTILINGUAL %}
            <a id="langs" {% if tab_name=="langs" %}class="on"{% endif %}
                href="{{ url('user_select_languages', view_user.id,  view_user.username|slugify) }}"
            ><span>{% trans %}languages{% endtrans %}</span></a>
            {% endif %}
            <a id="email_subscriptions" {% if tab_name=="email_subscriptions" %}class="on"{% endif %}
                href="{{ url('user_profile', view_user.id,  view_user.username|slugify) }}?sort=email_subscriptions"
            ><span>{% trans %}email alerts{% endtrans %}</span></a>
        {% endif %}
        {% if user_follow_feature_on %}
        <a id="network" {% if tab_name=="network" %}class="on"{% endif %}
            href="{{ url('user_profile', view_user.id,  view_user.username|slugify) }}?sort=network"
        ><span>{% trans %}network{% endtrans %}</span></a>
        {% endif %}
        {% if can_show_karma %}
        <a id="reputation" {% if tab_name=="reputation" %}class="on"{% endif %}
            href="{{ url('user_profile', view_user.id,  view_user.username|slugify) }}?sort=reputation"
        ><span>{% trans %}karma{% endtrans %}</span></a>
        {% endif %}
        <a id="favorites" {% if tab_name=="favorites" %}class="on"{% endif %}
            href="{{ url('user_profile', view_user.id,  view_user.username|slugify) }}?sort=favorites"
        ><span>{{ settings.WORDS_FOLLOWED_QUESTIONS|escape }}</span></a>
        <a id="recent" {% if tab_name=="recent" %}class="on"{% endif %}
            href="{{ url('user_profile', view_user.id,  view_user.username|slugify) }}?sort=recent"
        ><span>{% trans %}activity{% endtrans %}</span></a>
        {% if request.user.pk == view_user.pk or request.user|can_moderate_user(view_user) %}
        <a id="votes" {% if tab_name=="votes" %}class="on"{% endif %}
            href="{{ url('user_profile', view_user.id,  view_user.username|slugify) }}?sort=votes"
        ><span>{% trans %}votes{% endtrans %}</span></a>
        {% endif %}
        {% if request.user|can_moderate_user(view_user) %}
        <a id="moderation" {% if tab_name=="moderation" %}class="on"{% endif %}
            href="{{ url('user_profile', view_user.id,  view_user.username|slugify) }}?sort=moderation"
        ><span>{% trans %}moderation{% endtrans %}</span></a>
        {% endif %}
        {% if custom_tab_slug %}
        <a id="{{ custom_tab_slug }}" {% if tab_name == custom_tab_slug %}class="on"{% endif %}
            href="{{ url('user_profile', view_user.id,  view_user.username|slugify) }}?sort={{ custom_tab_slug }}"
        ><span>{{ custom_tab_name }}</span></a>
        {% endif %}
        {% if request.user.is_authenticated and request.user.can_manage_account(view_user) %}
        <a id="delete-account" {% if tab_name=="manage_account" %}class="on"{% endif %}
           href="{{ url('user_profile', view_user.id,  view_user.username|slugify) }}?sort=manage-account"
           ><span>{% trans %}account{% endtrans %}</span></a>
        {% endif %}
    </div>
</div>
<div class="clean"></div>
<!-- end user_tabs.html -->
