From 662df7cd5ac2b28d2470bd5345205a158be453f8 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Mon, 30 Mar 2020 15:15:33 +0000 Subject: [PATCH] Tweaked the upcoming calendar and calendar entries slightly, to render with times first and on two lines on narrow screens. - Legacy-Id: 17558 --- ietf/templates/meeting/upcoming.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ietf/templates/meeting/upcoming.html b/ietf/templates/meeting/upcoming.html index 416760545..46254218e 100644 --- a/ietf/templates/meeting/upcoming.html +++ b/ietf/templates/meeting/upcoming.html @@ -83,7 +83,7 @@ -
+
{% endblock %} {% block js %} @@ -94,9 +94,9 @@ document.addEventListener('DOMContentLoaded', function() { var calendarEl = document.getElementById('calendar'); + var glue = calendarEl.clientWidth > 720 ? ' ' : '\n'; var calendar = new FullCalendar.Calendar(calendarEl, { - aspectRatio: 1.35, plugins: [ 'dayGrid' ], displayEventTime: false, events: [ @@ -113,7 +113,7 @@ {% else %} {# if it's not a Meeting, it's a Session #} {% with session=entry %} { - title: '{{session.group.acronym}} : {{session.official_timeslotassignment.timeslot.utc_start_time|date:"H:i"}} - {{session.official_timeslotassignment.timeslot.utc_end_time|date:"H:i"}} UTC', + title: '{{session.official_timeslotassignment.timeslot.utc_start_time|date:"H:i"}}-{{session.official_timeslotassignment.timeslot.utc_end_time|date:"H:i"}}'+glue+'{{session.group.acronym}}', start: '{{session.official_timeslotassignment.timeslot.utc_start_time | date:"Y-m-d H:i"}}', end: '{{session.official_timeslotassignment.timeslot.utc_end_time | date:"Y-m-d H:i"}}', url: '{% url 'ietf.meeting.views.session_details' num=session.meeting.number acronym=session.group.acronym %}'