Skip to content

Commit 8a7f4ce

Browse files
committed
Enhanced [17687] slightly, adding rendering of other status settings than cancelled, and adding warning background for cancelled. See issue ietf-tools#2963.
- Legacy-Id: 17688 Note: SVN reference [17687] has been migrated to Git commit 48562d1
1 parent 48562d1 commit 8a7f4ce

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

ietf/meeting/views.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,12 +1139,15 @@ def session_details(request, num, acronym):
11391139
else:
11401140
session.times = [ x.timeslot.local_start_time() for x in ss ]
11411141
session.cancelled = session.current_status == 'canceled'
1142+
session.status = ''
11421143
elif meeting.type_id=='interim':
11431144
session.times = [ meeting.date ]
11441145
session.cancelled = session.current_status == 'canceled'
1146+
session.status = ''
11451147
else:
11461148
session.times = []
11471149
session.cancelled = session.current_status == 'canceled'
1150+
session.status = status_names.get(session.current_status, session.current_status)
11481151

11491152
session.filtered_artifacts = list(session.sessionpresentation_set.filter(document__type__slug__in=['agenda','minutes','bluesheets']))
11501153
session.filtered_artifacts.sort(key=lambda d:['agenda','minutes','bluesheets'].index(d.document.type.slug))

ietf/templates/meeting/session_details_panel.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{% for session in sessions %}
44
<h2 class="anchor-target" id="session_{{session.pk}}">{% if sessions|length > 1 %}Session {{ forloop.counter }} : {% endif %}
55
{% for time in session.times %}{% if not forloop.first %}, {% endif %} {{time|dateformat:"l Y-m-d H:i T"}} {% if time.tzinfo.zone != "UTC" %}<span class="small">({{time|utc|dateformat:"H:i T"}})</span>{% endif %}{% endfor %}
6-
{% if session.cancelled %}<span class="error">CANCELLED</span>{% endif %}
6+
{% if session.cancelled %}<small class="label label-warning">CANCELLED</small>{% else %}{{ session.status }}{% endif %}
77
{% if session.name %} : {{ session.name }}{% endif %}
88
{% if meeting.date >= thisweek %}
99
<a class="regular pull-right" title="icalendar entry for {{acronym}} session {{ forloop.counter }}" href="{% url 'ietf.meeting.views.ical_agenda' num=meeting.number session_id=session.id %}"><span class="fa fa-calendar"></span></a>

0 commit comments

Comments
 (0)