]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/user_info.html
initial import
[osqa.git] / forum / skins / default / templates / user_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 <div id="subheader" class="headUser">
8     {{view_user.username}}
9 </div>
10 <table class="user-info-table">
11     <tr>
12         <td width="180" style="vertical-align:middle;text-align:center;">
13             <table width="100%">
14                 <tr>
15                     <td>
16                         {% gravatar view_user 128 %}
17                     </td>
18                 </tr>
19                 <tr>
20                     <td align="center">
21                         <div class="scoreNumber">{{view_user.reputation|intcomma}}</div>
22                         <p><b style="color:#777;">{% trans "reputation" %}</b></p>
23                     </td>
24                 </tr>
25             </table>
26         </td>
27         <td width="360" style="vertical-align: top;">
28             <table class="user-details">
29                 {% if view_user != request.user and request.user.is_superuser %}
30                 <tr>
31                     <td class="admin" align="left" colspan="2">
32                         <h3>{% trans "Moderate this user" %}</h3>
33                         <form id="moderate_user_form" method="post">
34                             {{moderate_user_form.as_p}}
35                         </form>
36                         <p id="action_status"></p>
37                     </td>
38                 </tr>
39                 {% endif %}
40                 {% ifequal request.user view_user %}
41                 <tr>
42                     <td class="user-profile-tool-links" align="left" colspan="2">
43                         {% joinitems using ' | ' %}
44                             <span class="user-edit-link"><a href="{% url users %}{{ view_user.id }}/{% trans "edit/" %}">{% trans "update profile" %}</a></span>
45                         {% separator %}
46                             <a href="{% url user_authsettings %}">authentication settings</a>
47                         {% endjoinitems %}
48                     </td>
49                 </tr>  
50                 {% endifequal %}
51                 <tr>
52                     <th colspan="2" align="left"><h3>{% trans "Registered user" %}</h3></th>
53                 </tr>
54                 {% if view_user.real_name %}
55                 <tr>
56                     <td>{% trans "real name" %}</td>
57                     <td><b>{{view_user.real_name}}</b></td>
58                 </tr>
59                 {% endif %}
60                 <tr>
61                     <td>{% trans "member for" %}</td>
62                     <td><strong>{% diff_date view_user.date_joined %}</strong></td>
63                 </tr>
64                 {% if view_user.last_seen %}
65                 <tr>
66                     <td>{% trans "last seen" %}</td>
67                     <td><strong title="{{ view_user.last_seen }}">{% diff_date view_user.last_seen %}</strong></td>
68                 </tr>
69                 {% endif %}
70                 {% if view_user.website %}
71                 <tr>
72                     <td>{% trans "user website" %}</td>
73                     <td><a rel="nofollow" target="_blank" href="{{view_user.website}}">{{view_user.website}}</a></td>
74                 </tr>
75                 {% endif  %}
76                 {% if view_user.location %}
77                 <tr>
78                     <td>{% trans "location" %}</td>
79                     <td>{{view_user.location}}</td>
80                 </tr>
81                 {% endif %}
82                 {% if view_user.date_of_birth%}
83                 <tr>
84                                         <!--todo  - redo this with blocktrans -->
85                     <td>{% trans "age" %}</td>
86                     <td>{% get_age view_user.date_of_birth %} {% trans "age unit" %}</td>
87                 </tr>
88                 {% endif %}
89                                 <!--
90                 {% if votes_today_left %}
91                 <tr>
92                     <td>{% trans "todays unused votes" %}</td>
93                     <td><strong class="darkred">{{ votes_today_left }}</strong> {% trans "votes left" %}</td>
94                 </tr>
95                 {% endif %}
96                                 -->
97             </table>
98         </td>
99         <td width="380">
100             <div class="user-about">
101             {% if view_user.about %}
102                 {{view_user.about|safe|linebreaks}}
103             {% endif %}
104             </div>
105         </td>
106     </tr>
107 </table>
108 <!-- end user_info.html -->