lpschedule-generator

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

commit 6b6fec05d81bb25574c2bc299f06e528275905fd
parent 358278fc2e863592b987871a4d7f53614ad3cd7b
Author: rsiddharth <rsd@gnu.org>
Date:   Wed, 25 Oct 2017 01:29:36 +0000

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

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

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

diff --git a/libreplanet-templates/2018/lp-schedule.jinja2 b/libreplanet-templates/2018/lp-schedule.jinja2 @@ -54,6 +54,19 @@ {% endif %} {% endmacro %} +{# make desc details button macro #} +{% macro mk_desc_details_btn(disc_list) %} + {% if disc_list[0]|lower != 'desctba' %} + <button class="btn btn-default btn-xs" + data-toggle="collapse" aria-expanded="false" + aria-controls="{{ caller()|trim }}" + data-target="#{{ caller()|trim }}"> + Show details + <span class="glyphicon glyphicon-menu-down" aria-hidden="true"></span> + </button> + {% endif %} +{% endmacro %} + {# make day header macro #} {% macro mk_day_header(day, collapse_area) %} {% if day|trim != '' %}