show groups

This commit is contained in:
Trever Fischer
2012-04-21 11:45:46 -04:00
parent 3ce1e114c1
commit 741a6658a0

View File

@@ -6,14 +6,12 @@
{% block content %}
{% for group in groups %}
{% if group.users %}
<h2>{{group}}</h2>
<ul class='profile-list'>
{% for user in group.users %}
<li><a href="{% url local.views.profile username=user.username %}">{% avatar user %}<p>{{user}}</p></a></li>
{% endfor %}
</ul>
{% endif%}
<h2>{{group}}</h2>
<ul class='profile-list'>
{% for user in group.users %}
<li><a href="{% url local.views.profile username=user.username %}">{% avatar user %}<p>{{user}}</p></a></li>
{% endfor %}
</ul>
{% endfor %}
<h2>All Players</h2>
<ul class='profile-list'>