summaryrefslogtreecommitdiffstats
path: root/askbot/skins/default/templates/user_profile/user_tabs.html
blob: b8c564794f3b35b0553b9b81dd2f617cb30af35d (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!-- 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 %} 
            title="{% trans %}User profile{% endtrans %}" 
            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 %} 
            title="{% trans %}comments and answers to others questions{% endtrans %}" 
            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 %} 
            title="{% trans %}followers and followed users{% endtrans %}" 
            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 %} 
            title="{% trans %}Graph of user karma{% endtrans %}" 
            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 %} 
            title="{% trans %}questions that user is following{% endtrans %}"
            href="{% url user_profile view_user.id, view_user.username|slugify %}?sort=favorites"
        ><span>{% trans %}followed questions{% endtrans %}</span></a>
        <a id="recent" {% if tab_name=="recent" %}class="on"{% endif %} 
            title="{% trans %}activity{% endtrans %}" 
            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 %} 
            title="{% trans %}user vote record{% endtrans %}"
            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 %} 
            title="{% trans %}email subscription settings{% endtrans %}" 
            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 %} 
            title="{% trans %}moderate this user{% endtrans %}" 
            href="{% url user_profile view_user.id, view_user.username|slugify %}?sort=moderation"
        ><span>{% trans %}moderation{% endtrans %}</span></a>
        {% endif %}
    </div>
</div>
<div class="clean"></div>
<!-- end user_tabs.html -->