summaryrefslogtreecommitdiffstats
path: root/forum/skins/default/templates/user_tabs.html
blob: d0d52930276174403615d6ab39d0061225db23ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!-- user_tabs.html -->
{% load extra_filters %}
{% load i18n %}
<div class="tabBar">
    <div class="tabsA">
        <a id="stats" {% ifequal tab_name "stats" %}class="on"{% endifequal %} 
			title="{% trans "User profile" %}" href="{% url user_profile view_user.id view_user.username|slugify %}?sort=stats">{% trans "overview" %}</a>
        <a id="recent" {% ifequal tab_name "recent" %}class="on"{% endifequal %} 
			title="{% trans "recent activity" %}" href="{% url user_profile view_user.id view_user.username|slugify %}?sort=recent">{% trans "recent activity" %}</a>
        {% if request.user|is_user_self:view_user %}
        <a id="responses" {% ifequal tab_name "responses" %}class="on"{% endifequal %} 
			title="{% trans "comments and answers to others questions" %}" 
			href="{% url user_profile view_user.id view_user.username|slugify %}?sort=responses">{% trans "responses" %}</a>
        {% endif %}
        <a id="reputation" {% ifequal tab_name "reputation" %}class="on"{% endifequal %} 
			title="{% trans "graph of user reputation" %}" 
			href="{% url user_profile view_user.id view_user.username|slugify %}?sort=reputation">{% trans "reputation history" %}</a>
        {% if request.user|can_view_user_votes:view_user %}
        <a id="votes" {% ifequal tab_name "votes" %}class="on"{% endifequal %} 
			title="{% trans "user vote record" %}" href="{% url user_profile view_user.id view_user.username|slugify %}?sort=votes">{% trans "casted votes" %}</a>
        {% endif %}
        <a id="favorites" {% ifequal tab_name "favorites" %}class="on"{% endifequal %} 
			title="{% trans "questions that user selected as his/her favorite" %}"
			href="{% url user_profile view_user.id view_user.username|slugify %}?sort=favorites">{% trans "favorites" %}</a>
        {% if request.user|can_view_user_preferences:view_user %}
        <a id="email_subscriptions" {% ifequal tab_name "email_subscriptions" %}class="on"{% endifequal %} 
			title="{% trans "email subscription settings" %}" 
			href="{% url user_profile view_user.id view_user.username|slugify %}?sort=email_subscriptions">{% trans "email subscriptions" %}</a>
        {% endif %}  
    </div>
</div>
<!-- end user_tabs.html -->