lpschedule-generator

libreplanet schedule generator - ricketyspace.net/lpschedule-generator
git clone git://git.ricketyspace.net/lpschedule-generator.git
Log | Files | Refs

commit 1a3096ec1d6b5ee1cbea18cfbd3fed1d352de2e2
parent 32a8289f1ff5d04fa9ee20456c625d8c19ceb9cd
Author: rsiddharth <rsd@gnu.org>
Date:   Thu, 28 Jan 2016 19:55:47 -0500

updated template in testing area.

- Now it can accept empty "Day" and "Timeslot".
- "RoomTBA" -> "" in final HTML.

Diffstat:
tests/files/lp-sch-2016.jinja2 | 28+++++++++++++++++-----------
1 file changed, 17 insertions(+), 11 deletions(-)

diff --git a/tests/files/lp-sch-2016.jinja2 b/tests/files/lp-sch-2016.jinja2 @@ -36,25 +36,31 @@ {# make room macro #} {% macro mk_room(room) %} - <span class="label label-default">{{ room }}</span> + {% if room|lower != 'roomtba' %} + <span class="label label-default">{{ room }}</span> + {% endif %} {% endmacro %} {# make day header macro #} {% macro mk_day_header(day, collapse_area) %} - <header class="program-day-header"> - <hgroup> - <h2>{{ day }}</h2> - </hgroup> - </header> + {% if day|trim != '' %} + <header class="program-day-header"> + <hgroup> + <h2>{{ day }}</h2> + </hgroup> + </header> + {% endif %} {% endmacro %} {# make timeslot header macro #} {% macro mk_timeslot_header(timeslot, collapse, collapse_area='') %} - <header class="program-timeslot-header"> - <hgroup> - <h2>{{ timeslot }}</h2> - </hgroup> - </header> + {% if timeslot|trim != '' %} + <header class="program-timeslot-header"> + <hgroup> + <h2>{{ timeslot }}</h2> + </hgroup> + </header> + {% endif %} {% endmacro %} {# make session header macro #}