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