]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/users/tabs.html
Some general UI enhancements.
[osqa.git] / forum / skins / default / templates / users / tabs.html
index 0e0bfb091fa1e6c5e5ca67fc422cb03ea41c3873..1815c24cefa72846810a28ee59565940f495907f 100644 (file)
         <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>
-        {% ifequal request.user view_user %}
+        {% 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>
-        {% endifequal %}
+        {% 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>
-        {% ifequal request.user view_user %}
-        <a id="email_subscriptions" {% ifequal tab_name "subscriptions" %}class="on"{% endifequal %} 
-                       title="{% trans "email subscription settings" %}" 
-                       href="{% url user_subscriptions id=view_user.id,slug=user_slug %}">{% trans "subscriptions" %}</a>
-        {% endifequal %}  
     </div>
 </div>
 {% endwith %}