From: rsiddharth Date: Sun, 29 Oct 2017 15:39:30 +0000 (+0000) Subject: 2018: Update lp-schedule jinja2 template. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=41e432fa2521657797b4b75ae54aba246eedf5de;p=libreplanet-static.git 2018: Update lp-schedule jinja2 template. * 2018/assets/templates/lp-schedule.jinja2: Update file. --- diff --git a/2018/assets/templates/lp-schedule.jinja2 b/2018/assets/templates/lp-schedule.jinja2 index 036b92e1..cffee780 100644 --- a/2018/assets/templates/lp-schedule.jinja2 +++ b/2018/assets/templates/lp-schedule.jinja2 @@ -24,7 +24,7 @@ {# make speakers macro #} {% macro mk_speakers(speakers) %} {% if speakers[0]|lower != 'speakertba' %} - +
{% for speaker in speakers %} {% if loop.last %} {{ speaker }} @@ -32,14 +32,47 @@ {{ speaker }}, {% endif %} {% endfor %} - +
{% endif %} {% endmacro %} {# make room macro #} {% macro mk_room(room) %} {% if room|lower != 'roomtba' %} - {{ room }} +
+ {{ room }} +
+ {% endif %} +{% endmacro %} + +{# make video macro #} +{% macro mk_video(video) %} + {% if video|lower != 'videotba' %} + + + + {% endif %} +{% endmacro %} + +{# make desc details button macro #} +{% macro mk_desc_details_btn(disc_list) %} + {% if disc_list[0]|lower != 'desctba' %} + + {% endif %} +{% endmacro %} + +{% macro mk_desc(disc_list) %} + {% if disc_list[0]|lower != 'desctba' %} +
+ {{ desc(disc_list) }} +
{% endif %} {% endmacro %} @@ -89,24 +122,19 @@
{{ mk_session_header(session) }} {{ mk_speakers(session_info['speakers']) }} -

+

{{ mk_room(session_info['room']) }} - {% if session_info['desc'][0]|lower == 'desctba' %} -

- {% else %} - -

-
- {{ desc(session_info['desc']) }} -
- {% endif %} + {{ mk_video(session_info['video']) }} + {% call mk_desc_details_btn(session_info['desc']) %} + day-{{ day_index }}-timeslot-{{ timeslot_index }}-session-{{ loop.index }}-collapse + {% endcall %} +
+ +
+ {% call mk_desc(session_info['desc']) %} + day-{{ day_index }}-timeslot-{{ timeslot_index }}-session-{{ loop.index }}-collapse + {% endcall %} +
{% endfor %} {# session end #} {% endmacro %}