Skip to content

Commit f4cbe6c

Browse files
committed
Merged in [11690] from housley@vigilsec.com:
When the Secretariat marks a session as cancelled, the HTML agenda shows a red CANCELLED box, the text shows *** CANCELLED ***, and (as before) the .ics file includes STATUS:CANCELLED. Fixes issue ietf-tools#1639. - Legacy-Id: 11704 Note: SVN reference [11690] has been migrated to Git commit cbf7dad
2 parents 211a852 + cbf7dad commit f4cbe6c

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

ietf/meeting/models.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,12 +1157,8 @@ def agenda_text(self):
11571157
def ical_status(self):
11581158
if self.status.slug == 'canceled': # sic
11591159
return "CANCELLED"
1160-
elif (datetime.date.today() - self.meeting.date) > datetime.timedelta(days=5):
1161-
# this is a bit simpleminded, better would be to look at the
1162-
# time(s) of the timeslot(s) of the official meeting schedule.
1163-
return "CONFIRMED"
11641160
else:
1165-
return "TENTATIVE"
1161+
return "CONFIRMED"
11661162

11671163
def agenda_file(self):
11681164
if not hasattr(self, '_agenda_file'):

ietf/templates/meeting/agenda.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,10 +265,14 @@ <h2>
265265
</a>
266266
{% endif %}
267267

268-
{% if item.session.historic_group.state_id = "bof" %}
268+
{% if item.session.historic_group.state_id == "bof" %}
269269
<span class="label label-success pull-right">BOF</span>
270270
{% endif %}
271271

272+
{% if item.session.status.slug == 'canceled' %}
273+
<span class="label label-danger pull-right">CANCELLED</span>
274+
{% endif %}
275+
272276
{% if item.session.agenda_note %}
273277
<br><span class="text-danger">{{item.session.agenda_note}}</span>
274278
{% endif %}

ietf/templates/meeting/agenda.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
{% endif %}{% if item.timeslot.type.slug == "session" %}{% if item.session.historic_group %}{% ifchanged %}
2121

2222
{{ item.timeslot.time_desc }} {{ item.timeslot.name }}
23-
{% endifchanged %}{{ item.timeslot.location.name|ljust:14 }} {{ item.session.historic_group.historic_parent.acronym|upper|ljust:4 }} {{ item.session.historic_group.acronym|ljust:10 }} {{ item.session.historic_group.name }} {% if item.session.historic_group.state_id == "bof" %}BOF{% elif item.session.historic_group.type_id == "wg" %}WG{% endif %}{% if item.session.agenda_note %} - {{ item.session.agenda_note }}{% endif %}
23+
{% endifchanged %}{{ item.timeslot.location.name|ljust:14 }} {{ item.session.historic_group.historic_parent.acronym|upper|ljust:4 }} {{ item.session.historic_group.acronym|ljust:10 }} {{ item.session.historic_group.name }} {% if item.session.historic_group.state_id == "bof" %}BOF{% elif item.session.historic_group.type_id == "wg" %}WG{% endif %}{% if item.session.agenda_note %} - {{ item.session.agenda_note }}{% endif %}{% if item.session.status.slug == 'canceled' %} *** CANCELLED ***{% endif %}
2424
{% endif %}{% endif %}{% if item.timeslot.type.slug == "break" %}
2525
{{ item.timeslot.time_desc }} {{ item.timeslot.name }}{% if schedule.meeting.break_area and item.timeslot.show_location %} - {{ schedule.meeting.break_area }}{% endif %}{% endif %}{% if item.timeslot.type.slug == "other" %}
2626
{{ item.timeslot.time_desc }} {{ item.timeslot.name }} - {{ item.timeslot.location.name }}{% endif %}{% endfor %}

0 commit comments

Comments
 (0)