1 <!-- user_info.html -->
3 {% load extra_filters %}
10 <div id="subheader" class="headUser{% if view_user.is_suspended %} suspended-user{% endif %}">
11 {{view_user.decorated_name}}
13 <table class="user-info-table">
15 <td width="180" style="vertical-align:middle;text-align:center;">
19 {% gravatar view_user 128 %}
24 {% if not view_user.is_suspended %}
25 <div class="scoreNumber" id="user-reputation">{{view_user.reputation|intcomma}}</div>
26 <p><b style="color:#777;">{% trans "reputation" %}</b></p>
28 <div class="scoreNumber">{% trans "Suspended" %}</div>
29 <p>{{ view_user.suspension.extra.publicmsg }}</p>
35 <td width="360" style="vertical-align: top;">
36 {% if can_view_private %}{% user_menu request.user view_user %}{% endif %}
37 <table class="user-details">
39 <th colspan="2" align="left">
41 {% if view_user.is_superuser %}
42 {% trans "Administrator" %}
44 {% if view_user.is_staff %}
45 {% trans "Moderator" %}
47 {% trans "Registered user" %}
53 {% if view_user.real_name %}
55 <td>{% trans "real name" %}</td>
56 <td><b>{{view_user.real_name}}</b></td>
60 <td>{% trans "member for" %}</td>
61 <td><strong>{% diff_date view_user.date_joined %}</strong></td>
63 {% if view_user.last_seen %}
65 <td>{% trans "last seen" %}</td>
66 <td><strong title="{{ view_user.last_activity }}">{% diff_date view_user.last_activity %}</strong></td>
69 {% if view_user.website %}
71 <td>{% trans "user's website" %}</td>
72 <td><a rel="nofollow" target="_blank" href="{{view_user.website}}">{{view_user.website}}</a></td>
75 {% if view_user.location %}
77 <td>{% trans "location" %}</td>
78 <td>{{view_user.location}}</td>
81 {% if view_user.date_of_birth%}
83 <!--todo - redo this with blocktrans -->
84 {% if view_user.date_of_birth.year != 1900%}
85 <td>{% trans "age" %}</td>
86 <td>{% get_age view_user.date_of_birth %} {% trans "age unit" %}</td>
90 {% if can_view_private %}
92 <td>{% trans "email" %}</td>
94 <a href="mailto:{{ view_user.email }}">{{ view_user.email }}</a>
95 {% if not view_user.email_isvalid %}
96 ({% trans "not validated" %})
97 {% ifequal request.user view_user %}
98 </td></tr><tr><td></td><td><a href="{% url send_validation_email %}">{% trans "Send me a validation link." %}</a>
106 <td colspan="2" style="text-align:right">
107 <a href="{% url user_report user.pk %}" class="ajax-command withprompt">
113 {% if votes_today_left %}
115 <td>{% trans "todays unused votes" %}</td>
116 <td><strong class="darkred">{{ votes_today_left }}</strong> {% trans "votes left" %}</td>
123 {% if not view_user.is_suspended %}
124 <div class="user-about">
125 {% if view_user.about %}
126 {{view_user.about|markdown}}
133 <!-- end user_info.html -->