From 1a3096ec1d6b5ee1cbea18cfbd3fed1d352de2e2 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Thu, 28 Jan 2016 19:55:47 -0500 Subject: updated template in testing area. - Now it can accept empty "Day" and "Timeslot". - "RoomTBA" -> "" in final HTML. --- tests/files/lp-sch-2016.jinja2 | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) (limited to 'tests') diff --git a/tests/files/lp-sch-2016.jinja2 b/tests/files/lp-sch-2016.jinja2 index f7cb0de..39562de 100644 --- 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) %} - {{ room }} + {% if room|lower != 'roomtba' %} + {{ room }} + {% endif %} {% endmacro %} {# make day header macro #} {% macro mk_day_header(day, collapse_area) %} -
-
-

{{ day }}

-
-
+ {% if day|trim != '' %} +
+
+

{{ day }}

+
+
+ {% endif %} {% endmacro %} {# make timeslot header macro #} {% macro mk_timeslot_header(timeslot, collapse, collapse_area='') %} -
-
-

{{ timeslot }}

-
-
+ {% if timeslot|trim != '' %} +
+
+

{{ timeslot }}

+
+
+ {% endif %} {% endmacro %} {# make session header macro #} -- cgit v1.2.3