-{% load extra_filters %}
-{% load i18n %}
+{% load extra_filters ui_registry i18n %}
{% with view_user.username|slugify as user_slug %}
<div class="tabBar">
<div class="tabsA">
- <a id="stats" {% ifequal tab_name "stats" %}class="on"{% endifequal %}
- title="{% trans "User profile" %}" href="{% url user_profile id=view_user.id,slug=user_slug %}">{% trans "overview" %}</a>
- <a id="recent" {% ifequal tab_name "recent" %}class="on"{% endifequal %}
- title="{% trans "recent activity" %}" href="{% url user_recent id=view_user.id,slug=user_slug %}">{% trans "recent activity" %}</a>
- <a id="reputation" {% ifequal tab_name "reputation" %}class="on"{% endifequal %}
- title="{% trans "graph of user reputation" %}"
- href="{% url user_reputation id=view_user.id,slug=user_slug %}">{% trans "reputation history" %}</a>
- {% if can_view_private %}
- <a id="votes" {% ifequal tab_name "votes" %}class="on"{% endifequal %}
- title="{% trans "user vote record" %}" href="{% url user_votes id=view_user.id,slug=user_slug %}">{% 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_favorites id=view_user.id,slug=user_slug %}">{% trans "favorites" %}</a>
+ {% loopregistry profile_tabs %}{% spaceless %}
+ <a title="{{ tab_description }}" id="{{ tab_name }}" {% ifequal active_tab tab_name %}class="on"{% endifequal %} href="{{ tab_url }}">
+ {{ tab_title }}
+ </a>
+ {% endspaceless %}{% endloopregistry %}
</div>
</div>
{% endwith %}