From 87ce060164eccaf31af2f9e1e92f6db94e15ef1f Mon Sep 17 00:00:00 2001 From: Robert Sparks <rjsparks@nostrum.com> Date: Tue, 19 May 2015 18:09:44 +0000 Subject: [PATCH] Only show document versions for positions when the position is on an older version. (Reapplying earlier fix). Fixes #1711. Commit ready for merge. - Legacy-Id: 9639 --- ietf/templates/doc/document_ballot_content.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ietf/templates/doc/document_ballot_content.html b/ietf/templates/doc/document_ballot_content.html index 95cf1459d..375e35480 100644 --- a/ietf/templates/doc/document_ballot_content.html +++ b/ietf/templates/doc/document_ballot_content.html @@ -95,7 +95,7 @@ {% if p.pos.blocking and p.discuss %} <div class="panel panel-danger"> <div class="panel-heading"> - <h5 class="panel-title"><b>{{ p.pos.name }}</b> ({{ p.discuss_time|date:"Y-m-d" }} for -{{ p.get_dochistory.rev}})</h5> + <h5 class="panel-title"><b>{{ p.pos.name }}</b> ({{ p.discuss_time|date:"Y-m-d" }}{% if not p.for_current_revision %} for -{{ p.get_dochistory.rev}}{% endif %})</h5> </div> <div class="panel-body"><pre class="ballot">{{ p.discuss|wrap_text:80|escape|urlize }}</pre></div> </div> @@ -104,7 +104,7 @@ {% if p.comment %} <div class="panel panel-{{ p.pos|pos_to_label }}"> <div class="panel-heading"> - <h5 class="panel-title"><b>Comment</b> ({{ p.comment_time|date:"Y-m-d" }} for -{{ p.get_dochistory.rev}})</h5> + <h5 class="panel-title"><b>Comment</b> ({{ p.comment_time|date:"Y-m-d" }}{% if not p.for_current_revision %} for -{{ p.get_dochistory.rev}}{% endif %})</h5> </div> <div class="panel-body"><pre class="ballot">{{ p.comment|wrap_text:80|escape|urlize }}</pre></div> </div>