<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 %}