lpschedule-generator

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

commit 358278fc2e863592b987871a4d7f53614ad3cd7b
parent 30836fa17712567acbb12844895d48da261bcdc3
Author: rsiddharth <rsd@gnu.org>
Date:   Wed, 25 Oct 2017 01:27:53 +0000

libreplanet-templates: 2018: lp-schedule: Add mk_video.

* libreplanet-templates/2018/lp-schedule.jinja2 (mk_video): New macro.

Diffstat:
libreplanet-templates/2018/lp-schedule.jinja2 | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/libreplanet-templates/2018/lp-schedule.jinja2 b/libreplanet-templates/2018/lp-schedule.jinja2 @@ -45,6 +45,15 @@ {% endif %} {% endmacro %} +{# make video macro #} +{% macro mk_video(video) %} + {% if video|lower != 'videotba' %} + <a class="btn btn-default btn-xs" href="{{ video }}"> + <span class="glyphicon glyphicon-facetime-video"></span> + </a> + {% endif %} +{% endmacro %} + {# make day header macro #} {% macro mk_day_header(day, collapse_area) %} {% if day|trim != '' %}