1 <!-- user_info.html -->
3 {% load extra_filters %}
9 <div id="subheader" class="headUser{% if view_user.is_suspended %} suspended-user{% endif %}">
10 {{view_user.decorated_name}}
12 <table class="user-info-table">
14 <td width="180" style="vertical-align:middle;text-align:center;">
18 {% gravatar view_user 128 %}
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>
27 <div class="scoreNumber">{% trans "Suspended" %}</div>
28 <p>{{ view_user.suspension.extra.publicmsg }}</p>
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">
38 <th colspan="2" align="left">
40 {% if view_user.is_superuser %}
41 {% trans "Administrator" %}
43 {% if view_user.is_staff %}
44 {% trans "Moderator" %}
46 {% trans "Registered user" %}
52 {% if view_user.real_name %}
54 <td>{% trans "real name" %}</td>
55 <td><b>{{view_user.real_name}}</b></td>
59 <td>{% trans "member for" %}</td>
60 <td><strong>{% diff_date view_user.date_joined %}</strong></td>
62 {% if view_user.last_seen %}
64 <td>{% trans "last seen" %}</td>
65 <td><strong title="{{ view_user.last_activity }}">{% diff_date view_user.last_activity %}</strong></td>
68 {% if view_user.website %}
70 <td>{% trans "user's website" %}</td>
71 <td><a rel="nofollow" target="_blank" href="{{view_user.website}}">{{view_user.website}}</a></td>
74 {% if view_user.location %}
76 <td>{% trans "location" %}</td>
77 <td>{{view_user.location}}</td>
80 {% if view_user.date_of_birth%}
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>
89 {% if can_view_private %}
91 <td>{% trans "email" %}</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>
105 <td colspan="2" style="text-align:right">
106 <a href="{% url "user_report" user.pk %}" class="ajax-command withprompt">
112 {% if votes_today_left %}
114 <td>{% trans "todays unused votes" %}</td>
115 <td><strong class="darkred">{{ votes_today_left }}</strong> {% trans "votes left" %}</td>
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"}}
132 <!-- end user_info.html -->