Changeset - 0420fa6b1aa5
[Not reviewed]
0 2 0
Joel Addison - 4 years ago 2019-12-17 12:40:21
joel@addison.net.au
Hide unpublished talks from schedule

Use the unpublish flag on presentations to hide them from the schedule
grid/mobile view as well as the schedule lists.
Show unpublished indicator for staff.
2 files changed with 12 insertions and 2 deletions:
0 comments (0 inline, 0 general)
pinaxcon/templates/symposion/schedule/_grid.html
Show inline comments
...
 
@@ -31,12 +31,17 @@
 
      <td class="slot slot-{{ slot.kind.label }}" colspan="{{ slot.colspan }}" rowspan="{{ slot.rowspan }}">
 
        {% with slot.kind.label.lower as label %}
 
        {% if label == "talk" or label == "tutorial" %}
 
          {% if slot.content %}
 
          {% if slot.content.unpublish and not request.user.is_staff %}
 
          <p><em>To be announced</em></p>
 
          {% elif slot.content %}
 
          <p>
 
            <a href="{% url "schedule_presentation_detail" slot.content.pk %}">{{ slot.content.title }}</a>
 
            <br />
 
            {{ slot.content.speakers|join:", " }}
 
          </p>
 
          {% if slot.content.unpublish %}
 
          <span class="badge badge-pill badge-warning">Unpublished</span>
 
          {% endif %}
 
          {% flag "session_chair" %}
 
          {% if slot.sessions and not edit_schedule %}
 
          <div>
pinaxcon/templates/symposion/schedule/_mobile.html
Show inline comments
...
 
@@ -13,12 +13,17 @@
 
  {% endif %}
 
  {% with slot.kind.label.lower as label %}
 
  {% if label == "talk" or label == "tutorial" %}
 
    {% if slot.content %}
 
    {% if slot.content.unpublish and not request.user.is_staff %}
 
    <p><em>To be announced</em></p>
 
    {% elif slot.content %}
 
    <p>
 
      <a href="{% url "schedule_presentation_detail" slot.content.pk %}">{{ slot.content.title }}</a>
 
      <br>
 
      {{ slot.content.speakers|join:", "}}
 
    </p>
 
    {% if slot.content.unpublish %}
 
    <span class="badge badge-pill badge-warning">Unpublished</span>
 
    {% endif %}
 
    {% endif %}
 
  {% elif label == "shortbreak" %}
 
  {% else %}
0 comments (0 inline, 0 general)