Clean up profile pages a tad

This commit is contained in:
Trever Fischer
2012-04-24 14:30:24 -04:00
parent 08419bd0ba
commit bb542227c7
2 changed files with 10 additions and 1 deletions

View File

@@ -14,8 +14,9 @@
{% block sectiontitle %}{{profile}}{%endblock%}
{%block content %}
<div class="item">
<div class="item profile">
<div class="avatar">{% avatar profile 128 %}</div>
<h2>Statistics</h2>
<ul>
<li>Member Since: {{profile.date_joined|date:"SHORT_DATE_FORMAT"}}</li>
<li>Last seen: {{profile.last_login|date:"SHORT_DATE_FORMAT"}}</li>
@@ -31,13 +32,17 @@ Nobody!
<h2>Forum Activity</h2>
<ul>
{% for post in profile.post_set.all %}
{% if post.topic %}
<li><a href="{{post.get_absolute_url}}">{{post.topic}}</a></li>
{% endif %}
{% endfor %}
</ul>
<h2>Invited Players</h2>
<ul>
{% for invite in profile.invites.all %}
{% if invite.claimer %}
<li><a href="{{invite.claimer.get_absolute_url}}">{{invite.claimer}}</a></li>
{% endif %}
{% endfor %}
</ul>
</div>