<!-- 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 == view_user 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 %}inbox{% 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 == view_user 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 == view_user or request.user|can_moderate_user(view_user) %}
        <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 %}subscriptions{% 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 %}
    </div>
</div>
<div class="clean"></div>
<!-- end user_tabs.html -->
