]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/users/info.html
a99691cd56a29af6071870c02de9dfb799c9a788
[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.decorated_name}}
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">
40                         <h3>
41                             {% if view_user.is_superuser %}
42                                 {% trans "Administrator" %}
43                             {% else %}
44                                 {% if view_user.is_staff %}
45                                     {% trans "Moderator" %}
46                                 {% else %}
47                                     {% trans "Registered user" %}
48                                 {% endif %}
49                             {% endif %}
50                         </h3>
51                     </th>
52                 </tr>
53                 {% if view_user.real_name %}
54                 <tr>
55                     <td>{% trans "real name" %}</td>
56                     <td><b>{{view_user.real_name}}</b></td>
57                 </tr>
58                 {% endif %}
59                 <tr>
60                     <td>{% trans "member for" %}</td>
61                     <td><strong>{% diff_date view_user.date_joined %}</strong></td>
62                 </tr>
63                 {% if view_user.last_seen %}
64                 <tr>
65                     <td>{% trans "last seen" %}</td>
66                     <td><strong title="{{ view_user.last_activity }}">{% diff_date view_user.last_activity %}</strong></td>
67                 </tr>
68                 {% endif %}
69                 {% if view_user.website %}
70                 <tr>
71                     <td>{% trans "user's website" %}</td>
72                     <td><a rel="nofollow" target="_blank" href="{{view_user.website}}">{{view_user.website}}</a></td>
73                 </tr>
74                 {% endif  %}
75                 {% if view_user.location %}
76                 <tr>
77                     <td>{% trans "location" %}</td>
78                     <td>{{view_user.location}}</td>
79                 </tr>
80                 {% endif %}
81                 {% if view_user.date_of_birth%}
82                 <tr>
83                                         <!--todo  - redo this with blocktrans -->
84                     {% if view_user.date_of_birth.year != 1900%}
85                     <td>{% trans "age" %}</td>
86                     <td>{% get_age view_user.date_of_birth %} {% trans "age unit" %}</td>
87                     {% endif %}
88                 </tr>
89                 {% endif %}
90                 {% if can_view_private %}
91                 <tr>
92                     <td>{% trans "email" %}</td>
93                     <td>
94                         <a href="mailto:{{ view_user.email }}">{{ view_user.email }}</a>
95                         {% if not view_user.email_isvalid %}
96                             ({% trans "not validated" %})
97                             {% ifequal request.user view_user %}
98                                 </td></tr><tr><td></td><td><a href="{% url send_validation_email %}">{% trans "Send me a validation link." %}</a>
99                             {% endifequal %}
100                         {% endif %}
101                     </td>
102                 </tr>
103                 {% endif %}
104
105                 <tr>
106                     <td colspan="2" style="text-align:right">
107                         <a href="{% url user_report user.pk %}" class="ajax-command withprompt">
108                         Report user
109                         </a>
110                     </td>
111                 </tr>
112                                 <!--
113                 {% if votes_today_left %}
114                 <tr>
115                     <td>{% trans "todays unused votes" %}</td>
116                     <td><strong class="darkred">{{ votes_today_left }}</strong> {% trans "votes left" %}</td>
117                 </tr>
118                 {% endif %}
119                                 -->
120             </table>
121         </td>
122         <td width="380">
123             {% if not view_user.is_suspended %}
124             <div class="user-about">
125             {% if view_user.about %}
126                 {{view_user.about|markdown}}
127             {% endif %}
128             </div>
129             {% endif %}
130         </td>
131     </tr>
132 </table>
133 <!-- end user_info.html -->