Link to user profiles in places
This commit is contained in:
@@ -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>
|
||||
|
@@ -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 %}
|
||||
|
@@ -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 %}
|
||||
|
Reference in New Issue
Block a user