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