summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorrsiddharth <rsd@gnu.org>2016-01-28 19:55:47 -0500
committerrsiddharth <rsd@gnu.org>2016-01-28 19:55:47 -0500
commit1a3096ec1d6b5ee1cbea18cfbd3fed1d352de2e2 (patch)
tree7883758430dc73ca34fd00910c1e560de88c7a0d /tests
parent32a8289f1ff5d04fa9ee20456c625d8c19ceb9cd (diff)
updated template in testing area.
- Now it can accept empty "Day" and "Timeslot". - "RoomTBA" -> "" in final HTML.
Diffstat (limited to 'tests')
-rw-r--r--tests/files/lp-sch-2016.jinja228
1 files changed, 17 insertions, 11 deletions
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) %}
- <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 #}