]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/users/info.html
Fix OSQA 33, allow users to see profile just as users see their own.
[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 <div id="subheader" class="headUser">
10     {{view_user.username}}
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                         <div class="scoreNumber">{{view_user.reputation|intcomma}}</div>
24                         <p><b style="color:#777;">{% trans "reputation" %}</b></p>
25                     </td>
26                 </tr>
27             </table>
28         </td>
29         <td width="360" style="vertical-align: top;">
30             <table class="user-details">
31                 {% if view_user != request.user and request.user.is_superuser %}
32                 <tr>
33                     <td class="moderation" align="left" colspan="2">
34                         {% comment %}{% user_moderation request.user view_user %}{% endcomment %}
35                     </td>
36                 </tr>
37                 {% endif %}
38                 {% if can_view_private %}
39                 <tr>
40                     <td class="user-profile-tool-links" align="left" colspan="2">
41                         {% joinitems using ' | ' %}
42                             <span class="user-edit-link"><a href="{% url edit_user id=view_user.id %}">{% trans "update profile" %}</a></span>
43                         {% separator %}
44                             <a href="{% url user_authsettings id=view_user.id %}">authentication settings</a>
45                         {% endjoinitems %}
46                     </td>
47                 </tr>  
48                 {% endif %}
49                 <tr>
50                     <th colspan="2" align="left"><h3>{% trans "Registered user" %}</h3></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_seen }}">{% diff_date view_user.last_seen %}</strong></td>
66                 </tr>
67                 {% endif %}
68                 {% if view_user.website %}
69                 <tr>
70                     <td>{% trans "user 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 request.user.is_superuser %}
90                 <tr>
91                     <td>{% trans "email" %}</td>
92                     <td><a href="mailto: {{ view_user.email }}">{{ view_user.email }}</a></td>
93                 </tr>
94                 {% endif %}
95                                 <!--
96                 {% if votes_today_left %}
97                 <tr>
98                     <td>{% trans "todays unused votes" %}</td>
99                     <td><strong class="darkred">{{ votes_today_left }}</strong> {% trans "votes left" %}</td>
100                 </tr>
101                 {% endif %}
102                                 -->
103             </table>
104         </td>
105         <td width="380">
106             <div class="user-about">
107             {% if view_user.about %}
108                 {{view_user.about|markdown}}
109             {% endif %}
110             </div>
111         </td>
112     </tr>
113 </table>
114 <!-- end user_info.html -->