]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/users/info.html
Fix wrong arg in user_report url reverse
[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 user_tags %}
8
9 <div id="subheader" class="headUser{% if view_user.is_suspended %} suspended-user{% endif %}">
10     {{view_user.decorated_name}}
11 </div>
12 <table class="user-info-table">
13     <tr>
14         <td width="180" style="vertical-align:middle;text-align:center;">
15             <table width="100%">
16                 <tr>
17                     <td>
18                         {% gravatar view_user 128 %}
19                     </td>
20                 </tr>
21                 <tr>
22                     <td align="center">
23                         {% if not view_user.is_suspended %}
24                             <div class="scoreNumber" id="user-reputation">{{view_user.reputation|intcomma}}</div>
25                             <p><b style="color:#777;">{% trans "reputation" %}</b></p>
26                         {% else %}
27                             <div class="scoreNumber">{% trans "Suspended" %}</div>
28                             <p>{{ view_user.suspension.extra.publicmsg }}</p>
29                         {% endif %}
30                     </td>
31                 </tr>
32             </table>
33         </td>
34         <td width="360" style="vertical-align: top;">
35         {% if can_view_private %}{% user_menu request.user view_user %}{% endif %}
36             <table class="user-details">
37                 <tr>
38                     <th colspan="2" align="left">
39                         <h3>
40                             {% if view_user.is_superuser %}
41                                 {% trans "Administrator" %}
42                             {% else %}
43                                 {% if view_user.is_staff %}
44                                     {% trans "Moderator" %}
45                                 {% else %}
46                                     {% trans "Registered user" %}
47                                 {% endif %}
48                             {% endif %}
49                         </h3>
50                     </th>
51                 </tr>
52                 {% if view_user.real_name %}
53                 <tr>
54                     <td>{% trans "real name" %}</td>
55                     <td><b>{{view_user.real_name}}</b></td>
56                 </tr>
57                 {% endif %}
58                 <tr>
59                     <td>{% trans "member for" %}</td>
60                     <td><strong>{% diff_date view_user.date_joined %}</strong></td>
61                 </tr>
62                 {% if view_user.last_seen %}
63                 <tr>
64                     <td>{% trans "last seen" %}</td>
65                     <td><strong title="{{ view_user.last_activity }}">{% diff_date view_user.last_activity %}</strong></td>
66                 </tr>
67                 {% endif %}
68                 {% if view_user.website %}
69                 <tr>
70                     <td>{% trans "user's website" %}</td>
71                     <td><a rel="nofollow" target="_blank" href="{{view_user.website}}">{{view_user.website}}</a></td>
72                 </tr>
73                 {% endif  %}
74                 {% if view_user.location %}
75                 <tr>
76                     <td>{% trans "location" %}</td>
77                     <td>{{view_user.location}}</td>
78                 </tr>
79                 {% endif %}
80                 {% if view_user.date_of_birth%}
81                 <tr>
82                                         <!--todo  - redo this with blocktrans -->
83                     {% if view_user.date_of_birth.year != 1900%}
84                     <td>{% trans "age" %}</td>
85                     <td>{% get_age view_user.date_of_birth %} {% trans "age unit" %}</td>
86                     {% endif %}
87                 </tr>
88                 {% endif %}
89                 {% if can_view_private %}
90                 <tr>
91                     <td>{% trans "email" %}</td>
92                     <td>
93                         <a href="mailto:{{ view_user.email }}">{{ view_user.email }}</a>
94                         {% if not view_user.email_isvalid %}
95                             ({% trans "not validated" %})
96                             {% ifequal request.user view_user %}
97                                 </td></tr><tr><td></td><td><a href="{% url "send_validation_email" %}">{% trans "Send me a validation link." %}</a>
98                             {% endifequal %}
99                         {% endif %}
100                     </td>
101                 </tr>
102                 {% endif %}
103
104                 <tr>
105                     <td colspan="2" style="text-align:right">
106                         <a href="{% url "user_report" view_user.pk %}" class="ajax-command withprompt">
107                         Report user
108                         </a>
109                     </td>
110                 </tr>
111                                 <!--
112                 {% if votes_today_left %}
113                 <tr>
114                     <td>{% trans "todays unused votes" %}</td>
115                     <td><strong class="darkred">{{ votes_today_left }}</strong> {% trans "votes left" %}</td>
116                 </tr>
117                 {% endif %}
118                                 -->
119             </table>
120         </td>
121         <td width="380">
122             {% if not view_user.is_suspended %}
123             <div class="user-about">
124             {% if view_user.about %}
125                 {{view_user.about|static_content:"markdown-safe"}}
126             {% endif %}
127             </div>
128             {% endif %}
129         </td>
130     </tr>
131 </table>
132 <!-- end user_info.html -->