4 <script type="text/javascript">
\r
5 messages['points'] = "{% trans "Points" %}"
\r
8 <div id="user-menu-container">
\r
9 <span id="user-menu">{% trans "User tools" %} ▼</span>
\r
10 <ul id="user-menu-dropdown">
\r
11 <li class="item"><span class="user-edit"></span><a href="{% url edit_user id=user.id %}">{% trans "edit profile" %}</a></li>
\r
12 <li class="item"><span class="user-auth"></span><a href="{% url user_authsettings id=user.id %}">{% trans "authentication settings" %}</a></li>
\r
13 <li class="item"><span class="user-subscriptions"></span><a href="{% url user_subscriptions id=user.id,slug=user.username|slugify %}">{% trans "email notification settings" %}</a></li>
\r
14 {% ifnotequal user viewer %}
\r
15 {% if viewer.is_superuser %}
\r
16 <li class="separator">{% trans "Moderation tools" %}</li>
\r
17 {% if not user.is_superuser %}
\r
18 {% if user.is_suspended %}
\r
19 <li class="item"><span></span>
\r
20 <a href="{% url user_suspend id=user.id %}" class="ajax-command confirm" id="suspend-user">{% trans "withdraw suspension" %}</a>
\r
23 <li class="item"><span></span>
\r
24 <a href="{% url user_suspend id=user.id %}" class="ajax-command withprompt" id="suspend-user">{% trans "suspend this user" %}</a>
\r
28 {% if not user.is_suspended %}
\r
29 <li class="item"><span class="user-award_rep"></span>
\r
30 <a href="{% url user_award_points id=user.id %}" id="award-rep-points">{% trans "reputation bonus" %}</a>
\r
33 {% if not user.is_superuser %}
\r
34 {% if not user.is_staff %}
\r
35 <li class="item"><span class="user-moderator"></span>
\r
36 <a class="confirm" href="{% url user_powers id=user.id,action="grant",status="staff" %}">{% trans "grant moderator status" %}</a>
\r
39 <li class="item"><span class="user-moderator"></span>
\r
40 <a class="confirm" href="{% url user_powers id=user.id,action="remove",status="staff" %}">{% trans "remove moderator status" %}</a>
\r
43 <li class="item"><span class="user-superuser"></span>
\r
44 <a class="confirm" href="{% url user_powers id=user.id,action="grant",status="super" %}">{% trans "grant super user status" %}</a>
\r
47 {% if viewer.is_siteowner %}
\r
48 <li class="item"><span class="user-superuser"></span>
\r
49 <a class="confirm" href="{% url user_powers id=user.id,action="remove",status="super" %}">{% trans "remove super user status" %}</a>
\r