lpschedule-generator

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

commit fa817e6ca82350df9d0ae6a817c760f8720bd4f6
parent b7d9ae60ad92468cbf5e34ea1b6cf8a1656c8768
Author: rsiddharth <rsd@gnu.org>
Date:   Wed, 16 Dec 2015 22:27:46 -0500

template: added macro for `speakers`, `room`.

Diffstat:
templates/lp-sch-2016.jinja2 | 18++++++++++++++++++
1 file changed, 18 insertions(+), 0 deletions(-)

diff --git a/templates/lp-sch-2016.jinja2 b/templates/lp-sch-2016.jinja2 @@ -21,6 +21,24 @@ {# macros start #} +{# make speakers macro #} +{% macro mk_speakers(speakers) %} + <span class="program-session-speaker"> + {% for speaker in speakers %} + {% if loop.last %} + {{ speaker }} + {% else %} + {{ speaker }}, + {% endif %} + {% endfor %} + </span> +{% endmacro %} + +{# make room macro #} +{% macro mk_room(room) %} + <p><span class="label label-default">{{ room }}</span></p> +{% endmacro %} + {# make day header macro #} {% macro mk_day_header(day) %} <header class="program-day-header">