From 5fddfe13d0904220cfe2ec11bd12ea666726ad10 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Mon, 10 Jan 2011 16:51:07 +0000 Subject: [PATCH] Don't show None status --- templates/groups/group_list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/groups/group_list.html b/templates/groups/group_list.html index d27fb83..3c8b3b3 100644 --- a/templates/groups/group_list.html +++ b/templates/groups/group_list.html @@ -11,7 +11,7 @@ Group NameStatusActions {% for id, group, status, requestable, fixed in group_list %} {{ group }} - {{ status }} + {% if status %}{{ status }}{% endif %} {% ifequal status None %}{% if requestable %}Request Membership{% endif %}{% endifequal %} {% if not fixed and status %}Leave {% endif %} {% if status == 'Admin' or request.user.is_superuser %}Admin{% endif %}