]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/users/menu.html
Remove footer link to squatted domain
[osqa.git] / forum / skins / default / templates / users / menu.html
index 650c41f4e996d09661775ba05086b44c2cc20bee..1a9e57bfd5c879b95280efdb85b4baec27999476 100644 (file)
@@ -1,57 +1,8 @@
-{% load i18n %}\r
-{% load smart_if %}\r
-\r
-<script type="text/javascript">\r
-    messages['points'] = "{% trans "Points" %}"\r
-</script>\r
-\r
-<div id="user-menu-container">\r
-    <span id="user-menu">{% trans "User tools" %} &#9660;</span>\r
-    <ul id="user-menu-dropdown">\r
-        <li class="item"><span class="user-edit"></span><a href="{% url edit_user id=user.id %}">{% trans "edit profile" %}</a></li>\r
-        <li class="item"><span class="user-auth"></span><a href="{% url user_authsettings id=user.id %}">{% trans "authentication settings" %}</a></li>\r
-        <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
-        {% ifnotequal user viewer %}\r
-            {% if viewer.is_superuser %}\r
-            <li class="separator">{% trans "Moderation tools" %}</li>\r
-            {% if not user.is_superuser %}\r
-                {% if user.is_suspended %}\r
-                <li class="item"><span></span>\r
-                    <a href="{% url user_suspend id=user.id %}" class="ajax-command confirm" id="suspend-user">{% trans "withdraw suspension" %}</a>\r
-                </li>\r
-                {% else %}\r
-                <li class="item"><span></span>\r
-                    <a href="{% url user_suspend id=user.id %}" class="ajax-command withprompt" id="suspend-user">{% trans "suspend this user" %}</a>\r
-                </li>\r
-                {% endif %}\r
-            {% endif %}\r
-            {% if not user.is_suspended %}\r
-                <li class="item"><span class="user-award_rep"></span>\r
-                    <a href="{% url user_award_points id=user.id %}" id="award-rep-points">{% trans "reputation bonus" %}</a>\r
-                </li>\r
-            {% endif %}\r
-                {% if not user.is_superuser %}\r
-                    {% if not user.is_staff %}\r
-                    <li class="item"><span class="user-moderator"></span>\r
-                        <a class="confirm" href="{% url user_powers id=user.id,action="grant",status="staff" %}">{% trans "grant moderator status" %}</a>\r
-                    </li>\r
-                    {% else %}\r
-                    <li class="item"><span class="user-moderator"></span>\r
-                        <a class="confirm" href="{% url user_powers id=user.id,action="remove",status="staff" %}">{% trans "remove moderator status" %}</a>\r
-                    </li>\r
-                    {% endif %}\r
-                    <li class="item"><span class="user-superuser"></span>\r
-                        <a class="confirm" href="{% url user_powers id=user.id,action="grant",status="super" %}">{% trans "grant super user status" %}</a>\r
-                    </li>\r
-                {% else %}\r
-                    {% if viewer.is_siteowner %}\r
-                    <li class="item"><span class="user-superuser"></span>\r
-                        <a class="confirm" href="{% url user_powers id=user.id,action="remove",status="super" %}">{% trans "remove super user status" %}</a>\r
-                    </li>\r
-                    {% endif %}\r
-                {% endif %}\r
-            {% endif %}\r
-        {% endifnotequal %}\r
-    </ul>\r
-</div>\r
-\r
+{% load i18n smart_if ui_registry %}
+
+<div id="user-menu-container" class="context-menu">
+    <span id="user-menu" class="context-menu-trigger">{% trans "User tools" %} &#9660;</span>
+    <ul id="user-menu-dropdown" class="context-menu-dropdown">
+        {% loadregistry user_menu %}{% endloadregistry %}
+    </ul>
+</div>