]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/users/signature.html
Implemented 'report user' feature
[osqa.git] / forum / skins / default / templates / users / signature.html
index a34893ec9dbc5cf2ed7404f3717941d00a5d47b6..e8aebf3519d3223f761217a86af621f374c91eca 100644 (file)
@@ -1,28 +1,33 @@
-{% load i18n %}{% spaceless %}\r
-{% ifequal format "full" %}\r
+{% load i18n extra_filters %}{% spaceless %}\r
 \r
-{% else %}\r
-    <a href="{{ user.get_absolute_url }}">{{ user.username }}</a>\r
-    <span class="score" title="{{ user.reputation }} {% trans "reputation" %}">{{ user.reputation }}</span>\r
-    {% ifequal format "badges" %}\r
-        {% if user.gold %}\r
-        <span title="{{ user.gold }} {% trans "badges" %}">\r
-            <span class="badge1">&#9679;</span>\r
-            <span class="badgecount">{{ user.gold }}</span>\r
-        </span>\r
-        {% endif %}\r
-        {% if user.silver %}\r
-        <span title="{{ user.silver }} {% trans "badges" %}">\r
-            <span class="silver">&#9679;</span>\r
-            <span class="badgecount">{{ user.silver }}</span>\r
-        </span>\r
-        {% endif %}\r
-        {% if user.bronze %}\r
-        <span title="{{ user.bronze }} {% trans "badges" %}">\r
-            <span class="bronze">&#9679;</span>\r
-            <span class="badgecount">{{ user.bronze }}</span>\r
-        </span>\r
-        {% endif %}\r
+{% if not user.is_suspended %}\r
+    {% ifequal format "full" %}\r
+\r
+    {% else %}\r
+        <a href="{{ user.get_absolute_url }}">{{ user.decorated_name }}</a>\r
+        <span class="score" title="{{ user.reputation }} {% trans "reputation" %}">{{ user.reputation|decorated_int:"" }}</span>\r
+        {% ifequal format "badges" %}\r
+            {% if user.gold %}\r
+            <span title="{{ user.gold }} {% trans "badges" %}">\r
+                <span class="badge1">&#9679;</span>\r
+                <span class="badgecount">{{ user.gold }}</span>\r
+            </span>\r
+            {% endif %}\r
+            {% if user.silver %}\r
+            <span title="{{ user.silver }} {% trans "badges" %}">\r
+                <span class="silver">&#9679;</span>\r
+                <span class="badgecount">{{ user.silver }}</span>\r
+            </span>\r
+            {% endif %}\r
+            {% if user.bronze %}\r
+            <span title="{{ user.bronze }} {% trans "badges" %}">\r
+                <span class="bronze">&#9679;</span>\r
+                <span class="badgecount">{{ user.bronze }}</span>\r
+            </span>\r
+            {% endif %}\r
+        {% endifequal %}\r
     {% endifequal %}\r
-{% endifequal %}\r
-{% endspaceless %}
\ No newline at end of file
+{% else %}\r
+    <a class="suspended-user" href="{{ user.get_absolute_url }}">{{ user.decorated_name }}</a>{% trans "(suspended)" %}\r
+{% endif %}\r
+{% endspaceless %}\r