summaryrefslogtreecommitdiffstats
path: root/templates/user_info.html
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2009-07-10 19:15:28 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2009-07-10 19:15:28 -0400
commit35b666224a05fbd249b1c51a0a48fb95b246fe9a (patch)
treebfce966ce040dd849e8cc35a012d18f7632ad6b1 /templates/user_info.html
parent5b45e526c74faf55110ff0afdcba19797d7e0f4d (diff)
downloadaskbot-35b666224a05fbd249b1c51a0a48fb95b246fe9a.tar.gz
askbot-35b666224a05fbd249b1c51a0a48fb95b246fe9a.tar.bz2
askbot-35b666224a05fbd249b1c51a0a48fb95b246fe9a.zip
adding all files again
Diffstat (limited to 'templates/user_info.html')
-rw-r--r--templates/user_info.html90
1 files changed, 90 insertions, 0 deletions
diff --git a/templates/user_info.html b/templates/user_info.html
new file mode 100644
index 00000000..8e6dca84
--- /dev/null
+++ b/templates/user_info.html
@@ -0,0 +1,90 @@
+<!-- user_info.html -->
+{% load extra_tags %}
+{% load extra_filters %}
+{% load humanize %}
+{% load i18n %}
+<div id="subheader" class="headUser">
+ {{view_user.username}}
+
+</div>
+
+<table class="user-info-table">
+ <tr>
+ <td width="180" style="vertical-align:middle;text-align:center;">
+ <table width="100%">
+ <tr>
+ <td>
+ {% gravatar view_user 128 %}
+ </td>
+ </tr>
+ <tr>
+ <td align="center">
+ <div class="scoreNumber">{{view_user.reputation|intcomma}}</div>
+ <p><b style="color:#777;">{% trans "reputation" %}</b></p>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td width="360" style="vertical-align: top;">
+ <table class="user-details">
+ <tr height="30px">
+ <th width="130" align="left"><strong>{% trans "Registered user" %}</strong></th>
+ <th width="230" align="right">
+ {% if request.user|can_view_user_edit:view_user %}
+ <span class="user-edit-link"><a href="/users/{{ view_user.id }}/edit/">{% trans "update profile" %}</a></span>
+ {% endif %}
+ </th>
+ </tr>
+ {% if view_user.real_name %}
+ <tr>
+ <td>{% trans "real name" %}</td>
+ <td><b>{{view_user.real_name}}</b></td>
+ </tr>
+ {% endif %}
+ <tr>
+ <td>{% trans "member for" %}</td>
+ <td>{{ view_user.date_joined|timesince }}</td>
+ </tr>
+ {% if view_user.last_seen %}
+ <tr>
+ <td>{% trans "last seen" %}</td>
+ <td><strong title="{{ view_user.last_seen }}">{{ view_user.last_seen|timesince }} {% trans "ago" %}</strong></td>
+ </tr>
+ {% endif %}
+ {% if view_user.website %}
+ <tr>
+ <td>{% trans "user website" %}</td>
+ <td><a rel="nofollow" target="_blank" href="{{view_user.website}}">{{view_user.website}}</a></td>
+ </tr>
+ {% endif %}
+ {% if view_user.location %}
+ <tr>
+ <td>{% trans "location" %}</td>
+ <td>{{view_user.location}}</td>
+ </tr>
+ {% endif %}
+ {% if view_user.date_of_birth%}
+ <tr>
+ <!--todo - redo this with blocktrans -->
+ <td>{% trans "age" %}</td>
+ <td>{% get_age view_user.date_of_birth %} {% trans "age unit" %}</td>
+ </tr>
+ {% endif %}
+ {% if votes_today_left %}
+ <tr>
+ <td>{% trans "todays unused votes" %}</td>
+ <td><strong class="darkred">{{ votes_today_left }}</strong> {% trans "votes left" %}</td>
+ </tr>
+ {% endif %}
+ </table>
+ </td>
+ <td width="380">
+ <div class="user-about">
+ {% if view_user.about %}
+ {{view_user.about|safe|linebreaks}}
+ {% endif %}
+ </div>
+ </td>
+ </tr>
+</table>
+<!-- end user_info.html -->