Added description to the group view

This commit is contained in:
2011-01-11 14:42:03 +00:00
parent ae57262317
commit a0176667ea

View File

@@ -8,9 +8,10 @@
<table>
{% if group_list %}
<tr><th>Group Name</th><th>Status</th><th>Actions</th></tr>
<tr><th>Group Name</th><th>Description</th><th>Status</th><th>Actions</th></tr>
{% for id, group, status, requestable, fixed, pending in group_list %}
<tr><td>{{ group }}</td>
<td>{{ group.description }}</td>
<td>{% if pending %}Request Pending{% else %}{% if status %}{{ status }}{% endif %}{% endif %}</td>
<td>{% ifequal status None %}{% if requestable %}<a href="{% url groups.views.create_request id %}">Request Membership</a>{% endif %}{% endifequal %}
{% if not fixed and status %}<a href="{% url groups.views.kick_member id request.user.id %}">Leave</a>&nbsp;{% endif %}