From: jordan Date: Thu, 25 Aug 2011 11:44:19 +0000 (+0000) Subject: do not display moderators and administrators as ordinary registered users on the... X-Git-Tag: live~150 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/cf9f6346d1876d9c8ff5485e7f171db1926042f9 do not display moderators and administrators as ordinary registered users on the user profile view git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1167 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/skins/default/templates/users/info.html b/forum/skins/default/templates/users/info.html index 55b90ce..656c0ce 100644 --- a/forum/skins/default/templates/users/info.html +++ b/forum/skins/default/templates/users/info.html @@ -36,7 +36,19 @@ {% if can_view_private %}{% user_menu request.user view_user %}{% endif %} - + {% if view_user.real_name %}

{% trans "Registered user" %}

+

+ {% if view_user.is_superuser %} + {% trans "Administrator" %} + {% else %} + {% if view_user.is_staff %} + {% trans "Moderator" %} + {% else %} + {% trans "Registered user" %} + {% endif %} + {% endif %} +

+