diff --git a/symposion/templates/schedule/_edit_grid.html b/symposion/templates/schedule/_edit_grid.html index b8d1ae12..ff9afe78 100644 --- a/symposion/templates/schedule/_edit_grid.html +++ b/symposion/templates/schedule/_edit_grid.html @@ -1,32 +1,39 @@ - - - - {% for room in timetable.rooms %} - - {% endfor %} - - {% for row in timetable %} +
 {{ room.name }}
+ - - {% for slot in row.slots %} - + + {% for room in timetable.rooms %} + {% endfor %} - {% endfor %} + + + {% for row in timetable %} + + + {% for slot in row.slots %} + + {% endfor %} + {% if forloop.last %} + + {% endif %} + + {% endfor %} +
{{ row.time|date:"h:iA" }} - {% if slot.kind.label == "talk" %} - {% if not slot.content %} - + - {% else %} - -
{{ slot.content.speaker }}
- {% endif %} - {% else %} - {% if slot.content_override.raw %} - {{ slot.content_override.rendered|safe }} - {% else %} - {{ slot.kind.label }} - {% endif %} - — edit - {% endif %} -
 {{ room.name }}
{{ row.time|date:"h:iA" }} + {% if slot.kind.label == "talk" or slot.kind.label == "tutorial" %} + {% if not slot.content %} + + + {% else %} + {{ slot.content.title }} + {{ slot.content.speaker }} + {% endif %} + {% else %} + {% if slot.content_override.raw %} + {{ slot.content_override.rendered|safe }} + {% else %} + {{ slot.kind.label }} + {% endif %} + — edit + {% endif %} +
\ No newline at end of file diff --git a/symposion/templates/schedule/_grid.html b/symposion/templates/schedule/_grid.html index ef2361ea..be62d912 100644 --- a/symposion/templates/schedule/_grid.html +++ b/symposion/templates/schedule/_grid.html @@ -1,30 +1,41 @@ - - - - {% for room in timetable.rooms %} - - {% endfor %} - - {% for row in timetable %} +
 {{ room.name }}
+ - - {% for slot in row.slots %} - + + {% for room in timetable.rooms %} + {% endfor %} - {% endfor %} -
{{ row.time|date:"h:iA" }} - {% if slot.kind.label == "talk" %} - {% if not slot.content %} - {% else %} - -
{{ slot.content.speaker }}
- {% endif %} - {% else %} - {% if slot.content_override.raw %} - {{ slot.content_override.rendered|safe }} - {% else %} - {{ slot.kind.label }} - {% endif %} - {% endif %} -
 {{ room.name }}
\ No newline at end of file + + + {% for row in timetable %} + + {{ row.time|date:"h:iA" }} + {% for slot in row.slots %} + + {% if slot.kind.label == "talk" or slot.kind.label == "tutorial" %} + {% if not slot.content %} + {% else %} + + {{ slot.content.title }} + + + {{ slot.content.speakers|join:", " }} + + {% endif %} + {% else %} + {% if slot.content_override.raw %} + {{ slot.content_override.rendered|safe }} + {% else %} + {{ slot.kind.label }} + {% endif %} + {% endif %} + + {% endfor %} + {% if forloop.last %} + + {% endif %} + + {% endfor %} + + diff --git a/symposion_project/static/symposion/less/symposion-schedule.less b/symposion_project/static/symposion/less/symposion-schedule.less new file mode 100644 index 00000000..86738909 --- /dev/null +++ b/symposion_project/static/symposion/less/symposion-schedule.less @@ -0,0 +1,52 @@ +table.calendar { + background-color: #fffff; + table-layout: fixed; + font-size: 12px; + + tr { + min-height: 36px; + } + + th { + text-align: center; + + &.time { + width: 40px; + } + } + + td { + text-align: center; + vertical-align: middle; + + &.time { + vertical-align: top; + padding-top: 0; + margin-top: 0; + color: #444; + font-size: 11px; + } + + &.slot { + font-weight: bold; + text-shadow: #fff 0px 1px 0px; + + // Customize for slot types per site + &.slot-break { background-color: #ECFFFF; } + &.slot-plenary { background-color: lighten(#DCDCFF, 3%); } + p { + padding: 0; + margin: 0; + } + } + + span.title { + font-weight: bold; + display: block; + } + span.speaker { + font-weight: normal; + display:block; + } + } +}