From 090be02a16b89d41ad8e51bad8b69801412816f9 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Sat, 26 Mar 2011 14:35:05 +0000 Subject: [PATCH] Merged [2947] from rjsparks@nostrum.com: Changed the way ballot discuss/comment texts are displayed to put the text from current ADs first, and mark ex-ADs with [] following the convention on the left bar. This fixes issue #608 - Legacy-Id: 2955 Note: SVN reference [2947] has been migrated to Git commit 3c88c011e48e626e842c027575feb2f2aedde230 --- ietf/idrfc/idrfc_wrapper.py | 2 ++ ietf/templates/idrfc/doc_ballot.html | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ietf/idrfc/idrfc_wrapper.py b/ietf/idrfc/idrfc_wrapper.py index d540b39c0..66dab69ce 100644 --- a/ietf/idrfc/idrfc_wrapper.py +++ b/ietf/idrfc/idrfc_wrapper.py @@ -755,6 +755,8 @@ def create_position_object(ballot, position, all_comments): position=p) if not position.ad.is_current_ad(): r['is_old_ad'] = True + else: + r['is_old_ad'] = False was = [v for k,v in positions.iteritems() if position.__dict__[k] < 0] if len(was) > 0: diff --git a/ietf/templates/idrfc/doc_ballot.html b/ietf/templates/idrfc/doc_ballot.html index 6cec372e1..46f2aae48 100644 --- a/ietf/templates/idrfc/doc_ballot.html +++ b/ietf/templates/idrfc/doc_ballot.html @@ -77,8 +77,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Summary: {{ doc.ietf_process.iesg_ballot_needed }}

{% endif %} -{% for pos in ballot.get_texts %} -

{{pos.ad_name|escape}}

+{% for pos in ballot.get_texts|dictsort:"is_old_ad" %} +

{% if pos.is_old_ad %}[{%endif%}{{pos.ad_name|escape}}{% if pos.is_old_ad %}]{%endif%}

{% ifequal pos.position "Discuss" %}

Discuss ({{pos.discuss_date}})