From cf9f6346d1876d9c8ff5485e7f171db1926042f9 Mon Sep 17 00:00:00 2001 From: jordan Date: Thu, 25 Aug 2011 11:44:19 +0000 Subject: [PATCH] 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 --- forum/skins/default/templates/users/info.html | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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 %} -- 2.39.5

{% trans "Registered user" %}

+

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

+