Link to user profiles in places

This commit is contained in:
Trever Fischer
2012-04-21 10:34:36 -04:00
parent ebbd7df499
commit f4c118eac4
3 changed files with 4 additions and 4 deletions

View File

@@ -12,7 +12,7 @@
<ul>
{% if server.online_players %}
{% for player in server.online_players%}
<li><span class="avatar">{% avatar player.user 16 %}</span>{{player}}</li>
<li><a href="{{player.user.get_absolute_url}}"><span class="avatar">{% avatar player.user 16 %}</span>{{player}}</a></li>
{% endfor %}
{% else %}
<li><em>Nobody...</em></li>
@@ -27,7 +27,7 @@
<h3>Latest Posts</h3>
<ul>
{% for post in latestForumPosts %}
<li>{{post.user}} in <a href="{{post.topic.lastPost.get_absolute_url}}">{{post.topic}}</a></li>
<li><a href="{{post.user.get_absolute_url}}">{{post.user}}</a> in <a href="{{post.get_absolute_url}}">{{post.topic}}</a></li>
{% endfor %}
</ul>
</div>

View File

@@ -21,7 +21,7 @@
</ul></td>
<td>{{ f.topicCount }}</td>
{% if f.freshestTopic%}
<td class="author-info"><div class="avatar">{% avatar f.freshestTopic.lastPost.user 32 %}</div><ul><li>{{f.freshestTopic.lastPost.user}}</li><li>{{f.freshestTopic.updated|timesince}} ago</li><li>In <em><a href="{{f.freshestTopic.lastPost.get_absolute_url}}">{{f.freshestTopic}}</a></em></ul></td>
<td class="author-info"><a href="{{f.freshestTopic.lastPost.user.get_absolute_url}}"><div class="avatar">{% avatar f.freshestTopic.lastPost.user 32 %}</div></a><ul><li><a href="{{f.freshestTopic.lastPost.user.get_absolute_url}}">{{f.freshestTopic.lastPost.user}}</a></li><li>{{f.freshestTopic.updated|timesince}} ago</li><li>In <em><a href="{{f.freshestTopic.lastPost.get_absolute_url}}">{{f.freshestTopic}}</a></em></ul></td>
{% else %}
<td><em>No posts...</em></td>
{% endif %}

View File

@@ -7,7 +7,7 @@
{% block content %}
<ul id='profile-list'>
{% for user in profiles %}
<li>{% avatar user %}<p>{{user}}</p></li>
<li><a href="{% url local.views.profile username=user.username %}">{% avatar user %}<p>{{user}}</p></a></li>
{% endfor %}
</ul>
{% endblock %}