Skip to content

Commit 415e274

Browse files
author
Michael Lee
committed
IESG Announcment list page only lists announcements with ballog_id
- Legacy-Id: 269
1 parent b16a659 commit 415e274

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

ietf/iesg/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def wgdocs(request,cat):
1616
is_recent = 0
1717
if cat == 'recent':
1818
is_recent = 1
19-
queryset_list = list(InternetDraft.objects.filter(b_approve_date__gte = date_threshold, intended_status__in=[1,2,6,7],idinternal__via_rfc_editor=0).order_by("-b_approve_date"))
19+
queryset_list = InternetDraft.objects.filter(b_approve_date__gte = date_threshold, intended_status__in=[1,2,6,7],idinternal__via_rfc_editor=0).order_by("-b_approve_date")
2020
queryset_list_doc = InternetDraft.objects.filter(b_approve_date__gte = date_threshold, intended_status__in=[3,5],idinternal__via_rfc_editor=0).order_by("-b_approve_date")
2121
elif cat == 'previous':
2222
queryset_list = InternetDraft.objects.filter(b_approve_date__lt = date_threshold, b_approve_date__gte = '1998-10-15', intended_status__in=[1,2,6,7]).order_by("-b_approve_date")

ietf/templates/iesg/ietf_doc.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,25 @@
2828
<h3><a name="protocol">1. <u>Protocol Action Announcements</u></a></h3>
2929
{% regroup object_list by b_approve_date|date:"F j, Y" as dates %}
3030
{% for date in dates %}
31-
<b>Date Sent: {{ date.grouper }} </b>
31+
{% if date.list.0.idinternal.ballot_id %}<b>Date Sent: {{ date.grouper }} </b>{% endif %}
3232
<ul>
3333
{% for item in date.list %}
34-
<li>{% if item.idinternal.ballot_id %}<a href="/iesg/ann/detail/{{ item.idinternal.ballot_id }}/">{% else %}<a href="http://www.ietf.org/IESG/Announcements/{{ item.filename }}.ann">{% endif %}{{ item.title }}</a>
34+
{% if item.idinternal.ballot_id %}
35+
<li><a href="/iesg/ann/detail/{{ item.idinternal.ballot_id }}/">{{ item.title }}</a>
36+
{% endif %}
3537
{% endfor %}
3638
</ul>
3739
{% endfor %}
3840

3941
<h3><a name="document">2. <u>Document Action Announcements</u></a></h3>
4042
{% regroup object_list_doc by b_approve_date|date:"F j, Y" as dates %}
4143
{% for date in dates %}
42-
<b>Date Sent: {{ date.grouper }} </b>
44+
{% if date.list.0.idinternal.ballot_id %}<b>Date Sent: {{ date.grouper }} </b>{% endif %}
4345
<ul>
4446
{% for item in date.list %}
47+
{% if item.idinternal.ballot_id %}
4548
<li><a href="/iesg/ann/detail/{{ item.idinternal.ballot_id }}/">{{ item.title }}</a>
49+
{% endif %}
4650
{% endfor %}
4751
</ul>
4852
{% endfor %}

0 commit comments

Comments
 (0)