</td>
<td width="360" style="vertical-align: top;">
<table class="user-details">
- {% if view_user != request.user and request.user|can_moderate_users %}
+ {% if view_user != request.user and request.user.is_superuser %}
<tr>
<td class="admin" align="left" colspan="2">
<h3>{% trans "Moderate this user" %}</h3>
</td>
</tr>
{% endif %}
- {% if request.user|can_view_user_edit:view_user %}
+ {% ifequal request.user view_user %}
<tr>
<td class="user-profile-tool-links" align="left" colspan="2">
{% joinitems using ' | ' %}
- {% if request.user|can_view_user_edit:view_user %}
<span class="user-edit-link"><a href="{% url users %}{{ view_user.id }}/{% trans "edit/" %}">{% trans "update profile" %}</a></span>
- {% endif %}
{% separator %}
- {% ifequal request.user view_user %}
- <a href="{% url auth_signin %}">add authentication method</a>
- {% endifequal %}
- {% separator %}
- {% if request.user.has_usable_password %}
- <a href="{% url user_changepw %}">change password</a>
- {% endif %}
+ <a href="{% url user_authsettings %}">authentication settings</a>
{% endjoinitems %}
</td>
</tr>
- {% endif %}
+ {% endifequal %}
<tr>
<th colspan="2" align="left"><h3>{% trans "Registered user" %}</h3></th>
</tr>