Skip to content

Commit c454d56

Browse files
author
Michael Lee
committed
Fix splited ballot on announcement pages
- Legacy-Id: 598
1 parent 724f356 commit c454d56

2 files changed

Lines changed: 25 additions & 8 deletions

File tree

ietf/templates/iesg/ietf_doc.html

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,14 @@ <h3><a name="protocol">1. <u>Protocol Action Announcements</u></a></h3>
6666
{% for date in dates %}
6767
{% if date.list.0.idinternal.ballot_id %}<b>Date Sent: {{ date.grouper }} </b>{% endif %}
6868
<ul>
69-
{% for item in date.list %}
70-
{% if item.idinternal.ballot_id %}
71-
<li><a href="/iesg/ann/detail/{{ item.idinternal.ballot_id }}/">{{ item.title }} ({{ item.intended_status }})</a>
69+
{% regroup date.list by idinternal.ballot_id as ballots %}
70+
{% for each_ballot in ballots %}
71+
{% if each_ballot.grouper %}
72+
<li> <a href="/iesg/ann/detail/{{ each_ballot.grouper }}/">
73+
{% for item in each_ballot.list %}
74+
{{ item.title }} ({{ item.intended_status }})<br>
75+
{% endfor %}
76+
</a></li>
7277
{% endif %}
7378
{% endfor %}
7479
</ul>
@@ -79,9 +84,14 @@ <h3><a name="document">2. <u>Document Action Announcements</u></a></h3>
7984
{% for date in dates %}
8085
{% if date.list.0.idinternal.ballot_id %}<b>Date Sent: {{ date.grouper }} </b>{% endif %}
8186
<ul>
82-
{% for item in date.list %}
83-
{% if item.idinternal.ballot_id %}
84-
<li><a href="/iesg/ann/detail/{{ item.idinternal.ballot_id }}/">{{ item.title }} ({{ item.intended_status }})</a>
87+
{% regroup date.list by idinternal.ballot_id as ballots %}
88+
{% for each_ballot in ballots %}
89+
{% if each_ballot.grouper %}
90+
<li> <a href="/iesg/ann/detail/{{ each_ballot.grouper }}/">
91+
{% for item in each_ballot.list %}
92+
{{ item.title }} ({{ item.intended_status }})<br>
93+
{% endfor %}
94+
</a></li>
8595
{% endif %}
8696
{% endfor %}
8797
</ul>

ietf/templates/iesg/independent_doc.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,15 @@ <h3>Positive IESG Responses</h3>
4444
{% for date in dates %}
4545
<b>Date Sent: {{ date.grouper }}</b>
4646
<ul>
47-
{% for item in date.list %}
48-
<li><a href="/iesg/ann/detail/{{ item.idinternal.ballot_id }}/">{{ item.title }} ({{ item.intended_status }})</a>
47+
{% regroup date.list by idinternal.ballot_id as ballots %}
48+
{% for each_ballot in ballots %}
49+
{% if each_ballot.grouper %}
50+
<li> <a href="/iesg/ann/detail/{{ each_ballot.grouper }}/">
51+
{% for item in each_ballot.list %}
52+
{{ item.title }} ({{ item.intended_status }})<br>
53+
{% endfor %}
54+
</a></li>
55+
{% endif %}
4956
{% endfor %}
5057
</ul>
5158
{% endfor %}

0 commit comments

Comments
 (0)