]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/user_info.html
deleting the test file
[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|can_moderate_users %}
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                 {% if request.user|can_view_user_edit:view_user %}
41                 <tr>
42                     <td class="user-profile-tool-links" align="left" colspan="2">
43                         {% joinitems using ' | ' %}
44                             {% if request.user|can_view_user_edit:view_user %}
45                             <span class="user-edit-link"><a href="{% url users %}{{ view_user.id }}/{% trans "edit/" %}">{% trans "update profile" %}</a></span>
46                             {% endif %}
47                         {% separator %}
48                             {% ifequal request.user view_user %}
49                             <a href="{% url auth_signin %}">add authentication method</a>
50                             {% endifequal %}
51                         {% separator %}
52                             {% if request.user.has_usable_password %}
53                                 <a href="{% url user_changepw %}">change password</a>
54                             {% endif %}
55                         {% endjoinitems %}
56                     </td>
57                 </tr>  
58                 {% endif %}
59                 <tr>
60                     <th colspan="2" align="left"><h3>{% trans "Registered user" %}</h3></th>
61                 </tr>
62                 {% if view_user.real_name %}
63                 <tr>
64                     <td>{% trans "real name" %}</td>
65                     <td><b>{{view_user.real_name}}</b></td>
66                 </tr>
67                 {% endif %}
68                 <tr>
69                     <td>{% trans "member for" %}</td>
70                     <td><strong>{% diff_date view_user.date_joined %}</strong></td>
71                 </tr>
72                 {% if view_user.last_seen %}
73                 <tr>
74                     <td>{% trans "last seen" %}</td>
75                     <td><strong title="{{ view_user.last_seen }}">{% diff_date view_user.last_seen %}</strong></td>
76                 </tr>
77                 {% endif %}
78                 {% if view_user.website %}
79                 <tr>
80                     <td>{% trans "user website" %}</td>
81                     <td><a rel="nofollow" target="_blank" href="{{view_user.website}}">{{view_user.website}}</a></td>
82                 </tr>
83                 {% endif  %}
84                 {% if view_user.location %}
85                 <tr>
86                     <td>{% trans "location" %}</td>
87                     <td>{{view_user.location}}</td>
88                 </tr>
89                 {% endif %}
90                 {% if view_user.date_of_birth%}
91                 <tr>
92                                         <!--todo  - redo this with blocktrans -->
93                     <td>{% trans "age" %}</td>
94                     <td>{% get_age view_user.date_of_birth %} {% trans "age unit" %}</td>
95                 </tr>
96                 {% endif %}
97                                 <!--
98                 {% if votes_today_left %}
99                 <tr>
100                     <td>{% trans "todays unused votes" %}</td>
101                     <td><strong class="darkred">{{ votes_today_left }}</strong> {% trans "votes left" %}</td>
102                 </tr>
103                 {% endif %}
104                                 -->
105             </table>
106         </td>
107         <td width="380">
108             <div class="user-about">
109             {% if view_user.about %}
110                 {{view_user.about|safe|linebreaks}}
111             {% endif %}
112             </div>
113         </td>
114     </tr>
115 </table>
116 <!-- end user_info.html -->