From 2b46e031e2f1f82709a295e99a3c9055ca2fe0ec Mon Sep 17 00:00:00 2001 From: Bill Fenner Date: Thu, 31 May 2007 20:13:41 +0000 Subject: [PATCH] Use .count to gain a smidge of efficiency when checking for a ballot set, and use the right comment syntax. - Legacy-Id: 193 --- ietf/templates/idtracker/idinternal_detail.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ietf/templates/idtracker/idinternal_detail.html b/ietf/templates/idtracker/idinternal_detail.html index f77859270..b39ddc9f0 100644 --- a/ietf/templates/idtracker/idinternal_detail.html +++ b/ietf/templates/idtracker/idinternal_detail.html @@ -12,7 +12,7 @@
Detail Info
- {% if object.ballot_others %} + {% if object.ballot_others.count %}
Action List
@@ -203,12 +203,14 @@ - {% if object.ballot_others %} + {% if object.ballot_others.count %}

Actions

- {# this "regroup" is to get the data structure into the shape - # that search_result_table wants - it doesn't do anything real. #} + {% comment %} + # this "regroup" is to get the data structure into the shape + # that search_result_table wants - it doesn't do anything real. + {% endcomment %} {% regroup object.ballot_primary by docstate as grouped %} {% include "idtracker/search_result_table.html" %}