]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/users/info.html
Some general UI enhancements.
[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">
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                         <div class="scoreNumber" id="user-reputation">{{view_user.reputation|intcomma}}</div>
25                         <p><b style="color:#777;">{% trans "reputation" %}</b></p>
26                     </td>
27                 </tr>
28             </table>
29         </td>
30         <td width="360" style="vertical-align: top;">
31         {% if can_view_private %}{% user_menu request.user view_user %}{% endif %}
32             <table class="user-details">
33                 <tr>
34                     <th colspan="2" align="left"><h3>{% trans "Registered user" %}</h3></th>
35                 </tr>
36                 {% if view_user.real_name %}
37                 <tr>
38                     <td>{% trans "real name" %}</td>
39                     <td><b>{{view_user.real_name}}</b></td>
40                 </tr>
41                 {% endif %}
42                 <tr>
43                     <td>{% trans "member for" %}</td>
44                     <td><strong>{% diff_date view_user.date_joined %}</strong></td>
45                 </tr>
46                 {% if view_user.last_seen %}
47                 <tr>
48                     <td>{% trans "last seen" %}</td>
49                     <td><strong title="{{ view_user.last_seen }}">{% diff_date view_user.last_seen %}</strong></td>
50                 </tr>
51                 {% endif %}
52                 {% if view_user.website %}
53                 <tr>
54                     <td>{% trans "user website" %}</td>
55                     <td><a rel="nofollow" target="_blank" href="{{view_user.website}}">{{view_user.website}}</a></td>
56                 </tr>
57                 {% endif  %}
58                 {% if view_user.location %}
59                 <tr>
60                     <td>{% trans "location" %}</td>
61                     <td>{{view_user.location}}</td>
62                 </tr>
63                 {% endif %}
64                 {% if view_user.date_of_birth%}
65                 <tr>
66                                         <!--todo  - redo this with blocktrans -->
67                     {% if view_user.date_of_birth.year != 1900%}
68                     <td>{% trans "age" %}</td>
69                     <td>{% get_age view_user.date_of_birth %} {% trans "age unit" %}</td>
70                     {% endif %}
71                 </tr>
72                 {% endif %}
73                 {% if request.user.is_superuser %}
74                 <tr>
75                     <td>{% trans "email" %}</td>
76                     <td><a href="mailto: {{ view_user.email }}">{{ view_user.email }}</a></td>
77                 </tr>
78                 {% endif %}
79                                 <!--
80                 {% if votes_today_left %}
81                 <tr>
82                     <td>{% trans "todays unused votes" %}</td>
83                     <td><strong class="darkred">{{ votes_today_left }}</strong> {% trans "votes left" %}</td>
84                 </tr>
85                 {% endif %}
86                                 -->
87             </table>
88         </td>
89         <td width="380">
90             <div class="user-about">
91             {% if view_user.about %}
92                 {{view_user.about|markdown}}
93             {% endif %}
94             </div>
95         </td>
96     </tr>
97 </table>
98 <!-- end user_info.html -->