]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/users/info.html
Fixes OSQA 348, Last seen field is not updated.
[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"><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_activity }}">{% diff_date view_user.last_activity %}</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 can_view_private %}
79                 <tr>
80                     <td>{% trans "email" %}</td>
81                     <td>
82                         <a href="mailto: {{ view_user.email }}">{{ view_user.email }}</a>
83                         {% if not view_user.email_isvalid %}
84                             ({% trans "not validated" %})
85                             {% ifequal request.user view_user %}
86                                 </td></tr><tr><td></td><td><a href="{% url send_validation_email %}">{% trans "Send me a validation link." %}</a>
87                             {% endifequal %}
88                         {% endif %}
89                     </td>
90                 </tr>
91                 {% endif %}
92                                 <!--
93                 {% if votes_today_left %}
94                 <tr>
95                     <td>{% trans "todays unused votes" %}</td>
96                     <td><strong class="darkred">{{ votes_today_left }}</strong> {% trans "votes left" %}</td>
97                 </tr>
98                 {% endif %}
99                                 -->
100             </table>
101         </td>
102         <td width="380">
103             <div class="user-about">
104             {% if view_user.about %}
105                 {{view_user.about|markdown}}
106             {% endif %}
107             </div>
108         </td>
109     </tr>
110 </table>
111 <!-- end user_info.html -->