]> git.openstreetmap.org Git - osqa.git/commitdiff
Some more places to show a user is suspended.
authorhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Sat, 12 Jun 2010 01:35:49 +0000 (01:35 +0000)
committerhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Sat, 12 Jun 2010 01:35:49 +0000 (01:35 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@412 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/skins/default/templates/users/info.html
forum/skins/default/templates/users/menu.html
forum/skins/default/templates/users/users.html

index ab6a34fdbdd9f5ad1dd6c98a99dea66ab5c40ec8..b533f00d605808b7e55b33db641e28a8630f8646 100644 (file)
@@ -7,7 +7,7 @@
 {% load markup %}
 {% load user_tags %}
 
-<div id="subheader" class="headUser">
+<div id="subheader" class="headUser{% if view_user.is_suspended %} suspended-user{% endif %}">
     {{view_user.username}}
 </div>
 <table class="user-info-table">
                 </tr>
                 <tr>
                     <td align="center">
-                        <div class="scoreNumber" id="user-reputation">{{view_user.reputation|intcomma}}</div>
-                        <p><b style="color:#777;">{% trans "reputation" %}</b></p>
+                        {% if not view_user.is_suspended %}
+                            <div class="scoreNumber" id="user-reputation">{{view_user.reputation|intcomma}}</div>
+                            <p><b style="color:#777;">{% trans "reputation" %}</b></p>
+                        {% else %}
+                            <div class="scoreNumber">{% trans "Suspended" %}</div>
+                            <p>{{ view_user.suspension.extra.publicmsg }}</p>
+                        {% endif %}
                     </td>
                 </tr>
             </table>
@@ -46,7 +51,7 @@
                 {% if view_user.last_seen %}
                 <tr>
                     <td>{% trans "last seen" %}</td>
-                    <td><strong title="{{ view_user.last_seen }}">{% diff_date view_user.last_seen %}</strong></td>
+                    <td><strong title="{{ view_user.last_login }}">{% diff_date view_user.last_login %}</strong></td>
                 </tr>
                 {% endif %}
                 {% if view_user.website %}
index 65d726e635f94218e2197eff4f161d10ca7e52fc..18b886f4426a23253f8e334e393f0fcbb53ce71c 100644 (file)
                 </li>\r
                 {% endif %}\r
             {% endif %}\r
-\r
-            <li class="item"><span class="user-award_rep"></span><a href="{% url user_award_points id=user.id %}" id="award-rep-points">{% trans "reputation bonus" %}</a></li>\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
index 2247f5b539d9ead4f1b6690ef57d33eea9529526..a79058d8e877e00fc5da06d7b416b6019e4cd602 100644 (file)
@@ -48,7 +48,7 @@
                     <div class="user">
                         <ul>
                             <li class="thumb"><a href="{{ user.get_profile_url }} ">{% gravatar user 32 %}</a></li>
-                            <li><a {% if user.is_suspended %}class="suspended-user" {% endif %}href=" {{ user.get_profile_url }} ">{{ user.get_profile_link }}</a></li>
+                            <li><a {% if user.is_suspended %}class="suspended-user" {% endif %}href="{{ user.get_profile_url }}">{{ user.username }}</a></li>
                             <li>{% get_score_badge user %}</li>
                         </ul>
                     </div>