]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/users/info.html
do not show user bio if user is suspended
[osqa.git] / forum / skins / default / templates / users / info.html
index 55b90ce738ee5061517423137b6588cebf1b3a8c..39f3b7d869d17d4f576ff9a4e1f6dc18c02ef5e0 100644 (file)
         {% if can_view_private %}{% user_menu request.user view_user %}{% endif %}
             <table class="user-details">
                 <tr>
         {% if can_view_private %}{% user_menu request.user view_user %}{% endif %}
             <table class="user-details">
                 <tr>
-                    <th colspan="2" align="left"><h3>{% trans "Registered user" %}</h3></th>
+                    <th colspan="2" align="left">
+                        <h3>
+                            {% if view_user.is_superuser %}
+                                {% trans "Administrator" %}
+                            {% else %}
+                                {% if view_user.is_staff %}
+                                    {% trans "Moderator" %}
+                                {% else %}
+                                    {% trans "Registered user" %}
+                                {% endif %}
+                            {% endif %}
+                        </h3>
+                    </th>
                 </tr>
                 {% if view_user.real_name %}
                 <tr>
                 </tr>
                 {% if view_user.real_name %}
                 <tr>
             </table>
         </td>
         <td width="380">
             </table>
         </td>
         <td width="380">
+            {% if not view_user.is_suspended %}
             <div class="user-about">
             {% if view_user.about %}
                 {{view_user.about|markdown}}
             {% endif %}
             </div>
             <div class="user-about">
             {% if view_user.about %}
                 {{view_user.about|markdown}}
             {% endif %}
             </div>
+            {% endif %}
         </td>
     </tr>
 </table>
         </td>
     </tr>
 </table>