]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/users/info.html
make the karma history positive & negative reputation blocks use CSS min-width instea...
[osqa.git] / forum / skins / default / templates / users / info.html
index 8ffc7fa5cb385066cfaadcac3c100fbabad76c4c..656c0cee1c43c2e707918a287ee1c22905c1f864 100644 (file)
@@ -8,7 +8,7 @@
 {% load user_tags %}
 
 <div id="subheader" class="headUser{% if view_user.is_suspended %} suspended-user{% endif %}">
-    {{view_user.username}}
+    {{view_user.decorated_name}}
 </div>
 <table class="user-info-table">
     <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>
@@ -51,7 +63,7 @@
                 {% if view_user.last_seen %}
                 <tr>
                     <td>{% trans "last seen" %}</td>
-                    <td><strong title="{{ view_user.last_login }}">{% diff_date view_user.last_login %}</strong></td>
+                    <td><strong title="{{ view_user.last_activity }}">{% diff_date view_user.last_activity %}</strong></td>
                 </tr>
                 {% endif %}
                 {% if view_user.website %}
@@ -79,7 +91,7 @@
                 <tr>
                     <td>{% trans "email" %}</td>
                     <td>
-                        <a href="mailto: {{ view_user.email }}">{{ view_user.email }}</a>
+                        <a href="mailto:{{ view_user.email }}">{{ view_user.email }}</a>
                         {% if not view_user.email_isvalid %}
                             ({% trans "not validated" %})
                             {% ifequal request.user view_user %}