]> git.openstreetmap.org Git - osqa.git/commitdiff
do not display moderators and administrators as ordinary registered users on the...
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Thu, 25 Aug 2011 11:44:19 +0000 (11:44 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Thu, 25 Aug 2011 11:44:19 +0000 (11:44 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1167 0cfe37f9-358a-4d5e-be75-b63607b5c754

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

index 55b90ce738ee5061517423137b6588cebf1b3a8c..656c0cee1c43c2e707918a287ee1c22905c1f864 100644 (file)
         {% 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>