Changeset - 734a0b713d2d
[Not reviewed]
Joel Addison - 3 years ago 2021-01-24 02:03:00
joel@addison.net.au
Improve printed schedule

Show each day on a new page when printed.
Hide elements that do not assist with printed copy (current time, etc).
5 files changed with 9 insertions and 5 deletions:
0 comments (0 inline, 0 general)
pinaxcon/templates/symposion/schedule/schedule_conference.html
Show inline comments
...
 
@@ -47,5 +47,5 @@
 
            <small class="text-muted">{{ timetable.day.date|date:"l" }}, {{ timetable.day.date }}</small>
 
          </h2>
 
          <p class="timezone-info small">Conference times are in {{ settings.LCA_START|date:'T' }} (UTC{{ settings.LCA_START|date:'O' }}). Current talks will be highlighted.</p>
 
          <p class="timezone-info small">Conference times are in {{ settings.LCA_START|date:'T' }} (UTC{{ settings.LCA_START|date:'O' }}). <span class="d-print-none">Current talks will be highlighted.</span></p>
 
          <div class="table-responsive d-none d-md-block">
 
            {% include "symposion/schedule/_grid.html" %}
pinaxcon/templates/symposion/schedule/schedule_detail.html
Show inline comments
...
 
@@ -12,10 +12,10 @@
 
  {% cache 600 "schedule-detail-table" schedule.section %}
 
    {% for timetable in days %}
 
    <div class="row">
 
    <div class="row timetable-day">
 
      <div class="col-12">
 
        <h2 class="my-4">
 
          {{ timetable.day.date|date:"l" }}, {{ timetable.day.date }}
 
        </h2>
 
        <p class="timezone-info small">Conference times are in {{ settings.LCA_START|date:'T' }} (UTC{{ settings.LCA_START|date:'O' }}). Current talks will be highlighted.</p>
 
        <p class="timezone-info small">Conference times are in {{ settings.LCA_START|date:'T' }} (UTC{{ settings.LCA_START|date:'O' }}). <span class="d-print-none">Current talks will be highlighted.</span></p>
 
        <div class="table-responsive d-none d-md-block">
 
          {% include "symposion/schedule/_grid.html" %}
pinaxcon/templates/symposion/schedule/schedule_edit.html
Show inline comments
...
 
@@ -25,5 +25,5 @@
 
        {{ timetable.day.date|date:"l" }}, {{ timetable.day.date }}
 
      </h2>
 
      <p class="timezone-info small">Conference times are in {{ settings.LCA_START|date:'T' }} (UTC{{ settings.LCA_START|date:'O' }}). Current talks will be highlighted.</p>
 
      <p class="timezone-info small">Conference times are in {{ settings.LCA_START|date:'T' }} (UTC{{ settings.LCA_START|date:'O' }}). <span class="d-print-none">Current talks will be highlighted.</span></p>
 
      <div class="table-responsive d-none d-md-block">
 
        {% include "symposion/schedule/_grid.html" with edit_schedule=True %}
static/src/js/schedule.js
Show inline comments
...
 
@@ -135,5 +135,5 @@ $(function() {
 
        if (clock.length === 0) {
 
            var template = document.createElement('template');
 
            template.innerHTML = '<div class="conf-clock"></div>';
 
            template.innerHTML = '<div class="conf-clock d-print-none"></div>';
 
            var clockDiv = template.content.firstChild;
 
            document.body.appendChild(clockDiv);
static/src/scss/app.scss
Show inline comments
...
 
@@ -123,3 +123,7 @@ label.label-required:after { content: ' *'; }
 
        }
 
    }
 

	
 
    .timetable-day:not(:first-child) {
 
        break-before: page;
 
    }
 
}
0 comments (0 inline, 0 general)