]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/users/info.html
Some more places to show a user is suspended.
[osqa.git] / forum / skins / default / templates / users / info.html
1 <!-- user_info.html -->
2 {% load extra_tags %}
3 {% load extra_filters %}
4 {% load humanize %}
5 {% load smart_if %}
6 {% load i18n %}
7 {% load markup %}
8 {% load user_tags %}
9
10 <div id="subheader" class="headUser{% if view_user.is_suspended %} suspended-user{% endif %}">
11     {{view_user.username}}
12 </div>
13 <table class="user-info-table">
14     <tr>
15         <td width="180" style="vertical-align:middle;text-align:center;">
16             <table width="100%">
17                 <tr>
18                     <td>
19                         {% gravatar view_user 128 %}
20                     </td>
21                 </tr>
22                 <tr>
23                     <td align="center">
24                         {% if not view_user.is_suspended %}
25                             <div class="scoreNumber" id="user-reputation">{{view_user.reputation|intcomma}}</div>
26                             <p><b style="color:#777;">{% trans "reputation" %}</b></p>
27                         {% else %}
28                             <div class="scoreNumber">{% trans "Suspended" %}</div>
29                             <p>{{ view_user.suspension.extra.publicmsg }}</p>
30                         {% endif %}
31                     </td>
32                 </tr>
33             </table>
34         </td>
35         <td width="360" style="vertical-align: top;">
36         {% if can_view_private %}{% user_menu request.user view_user %}{% endif %}
37             <table class="user-details">
38                 <tr>
39                     <th colspan="2" align="left"><h3>{% trans "Registered user" %}</h3></th>
40                 </tr>
41                 {% if view_user.real_name %}
42                 <tr>
43                     <td>{% trans "real name" %}</td>
44                     <td><b>{{view_user.real_name}}</b></td>
45                 </tr>
46                 {% endif %}
47                 <tr>
48                     <td>{% trans "member for" %}</td>
49                     <td><strong>{% diff_date view_user.date_joined %}</strong></td>
50                 </tr>
51                 {% if view_user.last_seen %}
52                 <tr>
53                     <td>{% trans "last seen" %}</td>
54                     <td><strong title="{{ view_user.last_login }}">{% diff_date view_user.last_login %}</strong></td>
55                 </tr>
56                 {% endif %}
57                 {% if view_user.website %}
58                 <tr>
59                     <td>{% trans "user's website" %}</td>
60                     <td><a rel="nofollow" target="_blank" href="{{view_user.website}}">{{view_user.website}}</a></td>
61                 </tr>
62                 {% endif  %}
63                 {% if view_user.location %}
64                 <tr>
65                     <td>{% trans "location" %}</td>
66                     <td>{{view_user.location}}</td>
67                 </tr>
68                 {% endif %}
69                 {% if view_user.date_of_birth%}
70                 <tr>
71                                         <!--todo  - redo this with blocktrans -->
72                     {% if view_user.date_of_birth.year != 1900%}
73                     <td>{% trans "age" %}</td>
74                     <td>{% get_age view_user.date_of_birth %} {% trans "age unit" %}</td>
75                     {% endif %}
76                 </tr>
77                 {% endif %}
78                 {% if request.user.is_superuser %}
79                 <tr>
80                     <td>{% trans "email" %}</td>
81                     <td><a href="mailto: {{ view_user.email }}">{{ view_user.email }}</a></td>
82                 </tr>
83                 {% endif %}
84                                 <!--
85                 {% if votes_today_left %}
86                 <tr>
87                     <td>{% trans "todays unused votes" %}</td>
88                     <td><strong class="darkred">{{ votes_today_left }}</strong> {% trans "votes left" %}</td>
89                 </tr>
90                 {% endif %}
91                                 -->
92             </table>
93         </td>
94         <td width="380">
95             <div class="user-about">
96             {% if view_user.about %}
97                 {{view_user.about|markdown}}
98             {% endif %}
99             </div>
100         </td>
101     </tr>
102 </table>
103 <!-- end user_info.html -->