1 {% load extra_filters %}
3 {% with view_user.username|slugify as user_slug %}
6 <a id="stats" {% ifequal tab_name "stats" %}class="on"{% endifequal %}
7 title="{% trans "User profile" %}" href="{% url user_profile id=view_user.id,slug=user_slug %}">{% trans "overview" %}</a>
8 <a id="recent" {% ifequal tab_name "recent" %}class="on"{% endifequal %}
9 title="{% trans "recent activity" %}" href="{% url user_recent id=view_user.id,slug=user_slug %}">{% trans "recent activity" %}</a>
10 <a id="reputation" {% ifequal tab_name "reputation" %}class="on"{% endifequal %}
11 title="{% trans "graph of user reputation" %}"
12 href="{% url user_reputation id=view_user.id,slug=user_slug %}">{% trans "reputation history" %}</a>
13 {% ifequal request.user view_user %}
14 <a id="votes" {% ifequal tab_name "votes" %}class="on"{% endifequal %}
15 title="{% trans "user vote record" %}" href="{% url user_votes id=view_user.id,slug=user_slug %}">{% trans "casted votes" %}</a>
17 <a id="favorites" {% ifequal tab_name "favorites" %}class="on"{% endifequal %}
18 title="{% trans "questions that user selected as his/her favorite" %}"
19 href="{% url user_favorites id=view_user.id,slug=user_slug %}">{% trans "favorites" %}</a>
20 {% ifequal request.user view_user %}
21 <a id="email_subscriptions" {% ifequal tab_name "subscriptions" %}class="on"{% endifequal %}
22 title="{% trans "email subscription settings" %}"
23 href="{% url user_subscriptions id=view_user.id,slug=user_slug %}">{% trans "subscriptions" %}</a>