Skip to content

Commit

Permalink
Allow schedule to have up to 5 tracks in a row.
Browse files Browse the repository at this point in the history
Expand "kludge" that previously supported up to 4 schedule tracks so
that 5 tracks are supported. Additional tracks need to be called "Track
5" or "Tutorial Track 5".

This should be able to be removed when
pinax/symposion#74 is fixed.
  • Loading branch information
martey committed Oct 13, 2015
1 parent 5059525 commit afafa16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conf_site/templates/schedule/_edit_grid.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<td class="slot slot-{{ slot.kind.label }}" colspan="{{ slot.colspan }}" rowspan="{{ slot.rowspan }}">
{# this is a kludge until the slot.kind model has a property #}
{# to distinguish a presentation from a non-presentation slot #}
{% if slot.kind.label in "Track 4 Track 3 Track 2 Track 1 Tutorial Track 4 Tutorial Track 3 Tutorial Track 2 Tutorial Track 1" %}
{% if slot.kind.label in "Track 5 Track 4 Track 3 Track 2 Track 1 Tutorial Track 5 Tutorial Track 4 Tutorial Track 3 Tutorial Track 2 Tutorial Track 1 Tutorials Track 1 Tutorials Track 2" %}
{% if not slot.content %}
<a class="btn btn-xs edit-slot" data-action="{% url "schedule_slot_edit" schedule.section.slug slot.pk %}" href="#">+</a>
{% else %}
Expand Down
2 changes: 1 addition & 1 deletion conf_site/templates/schedule/_grid.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<td class="slot slot-{{ slot.kind.label }}" colspan="{{ slot.colspan }}" rowspan="{{ slot.rowspan }}">
{# this is a kludge until the slot.kind model has a property #}
{# to distinguish a presentation from a non-presentation slot #}
{% if slot.kind.label in "Track 4 Track 3 Track 2 Track 1 Tutorial Track 4 Tutorial Track 3 Tutorial Track 2 Tutorial Track 1 Tutorials Track 1 Tutorials Track 2" %}
{% if slot.kind.label in "Track 5 Track 4 Track 3 Track 2 Track 1 Tutorial Track 5 Tutorial Track 4 Tutorial Track 3 Tutorial Track 2 Tutorial Track 1 Tutorials Track 1 Tutorials Track 2" %}
{% if slot.content %}
<span class="title">
<a href="{% url "schedule_presentation_detail" slot.content.pk %}">{{ slot.content.title }}</a>
Expand Down

0 comments on commit afafa16

Please sign in to comment.