1 <!-- user_info.html -->
3 {% load extra_filters %}
7 <div id="subheader" class="headUser">
10 <table class="user-info-table">
12 <td width="180" style="vertical-align:middle;text-align:center;">
16 {% gravatar view_user 128 %}
21 <div class="scoreNumber">{{view_user.reputation|intcomma}}</div>
22 <p><b style="color:#777;">{% trans "reputation" %}</b></p>
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 %}
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}}
36 <p id="action_status"></p>
40 {% if request.user|can_view_user_edit:view_user %}
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>
48 {% ifequal request.user view_user %}
49 <a href="{% url auth_signin %}">add authentication method</a>
52 {% if request.user.has_usable_password %}
53 <a href="{% url user_changepw %}">change password</a>
60 <th colspan="2" align="left"><h3>{% trans "Registered user" %}</h3></th>
62 {% if view_user.real_name %}
64 <td>{% trans "real name" %}</td>
65 <td><b>{{view_user.real_name}}</b></td>
69 <td>{% trans "member for" %}</td>
70 <td><strong>{% diff_date view_user.date_joined %}</strong></td>
72 {% if view_user.last_seen %}
74 <td>{% trans "last seen" %}</td>
75 <td><strong title="{{ view_user.last_seen }}">{% diff_date view_user.last_seen %}</strong></td>
78 {% if view_user.website %}
80 <td>{% trans "user website" %}</td>
81 <td><a rel="nofollow" target="_blank" href="{{view_user.website}}">{{view_user.website}}</a></td>
84 {% if view_user.location %}
86 <td>{% trans "location" %}</td>
87 <td>{{view_user.location}}</td>
90 {% if view_user.date_of_birth%}
92 <!--todo - redo this with blocktrans -->
93 <td>{% trans "age" %}</td>
94 <td>{% get_age view_user.date_of_birth %} {% trans "age unit" %}</td>
98 {% if votes_today_left %}
100 <td>{% trans "todays unused votes" %}</td>
101 <td><strong class="darkred">{{ votes_today_left }}</strong> {% trans "votes left" %}</td>
108 <div class="user-about">
109 {% if view_user.about %}
110 {{view_user.about|safe|linebreaks}}
116 <!-- end user_info.html -->