Skip to content

Commit 246e1e7

Browse files
committed
Removed an inadvertently duplicated template for loop. Fixes issue ietf-tools#2136.
- Legacy-Id: 12643
1 parent 8833228 commit 246e1e7

1 file changed

Lines changed: 53 additions & 55 deletions

File tree

ietf/templates/meeting/proceedings.html

Lines changed: 53 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -68,61 +68,59 @@ <h2 class="anchor-target" id="plenaries">Plenaries</h2>
6868

6969
<!-- Working groups -->
7070
{% regroup ietf|dictsort:"group.parent.acronym" by group.parent.name as areas %}
71-
{% for sessions in areas %}
72-
{% for sessions in areas %}
73-
<h2 class="anchor-target" id="{{sessions.list.0.group.parent.acronym}}">{{sessions.list.0.group.parent.acronym|upper}} <small>{{ sessions.grouper }}</small></h2>
74-
{% regroup sessions.list by not_meeting as meet_or_not %}
75-
{% for batch in meet_or_not %}
76-
{% if not batch.grouper %}
77-
<table class="table table-condensed table-striped tablesorter">
78-
<thead>
79-
<tr>
80-
<th class="col-md-1">Group</th>
81-
<th class="col-md-1">Artifacts</th>
82-
<th class="col-md-2">Recordings</th>
83-
<th class="col-md-4">Slides</th>
84-
<th class="col-md-3">Drafts</th>
85-
</tr>
86-
</thead>
87-
<tbody>
88-
{% for session in batch.list|dictsort:"group.acronym" %}
89-
{% ifchanged session.group.acronym %}
90-
{% include "meeting/group_proceedings.html" %}
91-
{% endifchanged %}
92-
{% endfor %}
93-
</tbody>
94-
</table>
95-
{% else %}
96-
<p><small>{{sessions.grouper }} groups not meeting: </small>
97-
{% for session in batch.list|dictsort:"group.acronym" %}
98-
{% ifchanged session.group.acronym %}
99-
<a href="{% url 'ietf.group.views.group_home' acronym=session.group.acronym %}">{{session.group.acronym}}</a>{% if not forloop.last %},{% endif %}
100-
{% endifchanged %}
101-
{% endfor %}
102-
</p>
103-
<table class="table table-condensed table-striped">
104-
<thead>
105-
<tr>
106-
<th class="col-md-1">&nbsp;</th>
107-
<th class="col-md-1">&nbsp;</th>
108-
<th class="col-md-2">&nbsp;</th>
109-
<th class="col-md-4">&nbsp;</th>
110-
<th class="col-md-3">&nbsp;</th>
111-
</tr>
112-
</thead>
113-
<tbody>
114-
{% for session in batch.list|dictsort:"group.acronym" %}
115-
{% ifchanged session.group.acronym %}
116-
{% if session.sessionpresentation_set.exists %}
117-
{% include "meeting/group_proceedings.html" %}
118-
{% endif %}
119-
{% endifchanged %}
120-
{% endfor %}
121-
</tbody>
122-
</table>
123-
{% endif %}
124-
{% endfor %}
125-
{% endfor %}
71+
{% for sessions in areas %}
72+
<h2 class="anchor-target" id="{{sessions.list.0.group.parent.acronym}}">{{sessions.list.0.group.parent.acronym|upper}} <small>{{ sessions.grouper }}</small></h2>
73+
{% regroup sessions.list by not_meeting as meet_or_not %}
74+
{% for batch in meet_or_not %}
75+
{% if not batch.grouper %}
76+
<table class="table table-condensed table-striped tablesorter">
77+
<thead>
78+
<tr>
79+
<th class="col-md-1">Group</th>
80+
<th class="col-md-1">Artifacts</th>
81+
<th class="col-md-2">Recordings</th>
82+
<th class="col-md-4">Slides</th>
83+
<th class="col-md-3">Drafts</th>
84+
</tr>
85+
</thead>
86+
<tbody>
87+
{% for session in batch.list|dictsort:"group.acronym" %}
88+
{% ifchanged session.group.acronym %}
89+
{% include "meeting/group_proceedings.html" %}
90+
{% endifchanged %}
91+
{% endfor %}
92+
</tbody>
93+
</table>
94+
{% else %}
95+
<p><small>{{sessions.grouper }} groups not meeting: </small>
96+
{% for session in batch.list|dictsort:"group.acronym" %}
97+
{% ifchanged session.group.acronym %}
98+
<a href="{% url 'ietf.group.views.group_home' acronym=session.group.acronym %}">{{session.group.acronym}}</a>{% if not forloop.last %},{% endif %}
99+
{% endifchanged %}
100+
{% endfor %}
101+
</p>
102+
<table class="table table-condensed table-striped">
103+
<thead>
104+
<tr>
105+
<th class="col-md-1">&nbsp;</th>
106+
<th class="col-md-1">&nbsp;</th>
107+
<th class="col-md-2">&nbsp;</th>
108+
<th class="col-md-4">&nbsp;</th>
109+
<th class="col-md-3">&nbsp;</th>
110+
</tr>
111+
</thead>
112+
<tbody>
113+
{% for session in batch.list|dictsort:"group.acronym" %}
114+
{% ifchanged session.group.acronym %}
115+
{% if session.sessionpresentation_set.exists %}
116+
{% include "meeting/group_proceedings.html" %}
117+
{% endif %}
118+
{% endifchanged %}
119+
{% endfor %}
120+
</tbody>
121+
</table>
122+
{% endif %}
123+
{% endfor %}
126124
{% endfor %}
127125

128126
<!-- Training Sessions -->

0 commit comments

Comments
 (0)