From 6e1a2cb2ef4d5c9d8efbfc2d4c1b0ca0e7f76d3b Mon Sep 17 00:00:00 2001 From: James Tauber Date: Fri, 3 Aug 2012 00:50:08 -0400 Subject: [PATCH] show applicant count to managers and staff on dashboard --- symposion_project/templates/dashboard.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/symposion_project/templates/dashboard.html b/symposion_project/templates/dashboard.html index 55952628..f0bfc5c9 100644 --- a/symposion_project/templates/dashboard.html +++ b/symposion_project/templates/dashboard.html @@ -137,6 +137,9 @@
{{ membership.team.name }} {{ membership.get_state_display }} + {% if membership.state == "manager" or user.is_staff %} + {% if membership.team.applicants %}{{ membership.team.applicants.count }} applicant{{ membership.team.applicants.count|pluralize }}{% endif %} + {% endif %}
{% endfor %} @@ -146,7 +149,10 @@

Available Teams

{% for team in available_teams %} -
{{ team }} {{ team.get_access_display }}
+
+ {{ team }} + {{ team.get_access_display }} +
{% if team.description %}
{{ team.description }}
{% endif %} {% endfor %}