diff options
author | rsiddharth <rsd@gnu.org> | 2016-05-11 04:10:07 +0000 |
---|---|---|
committer | rsiddharth <rsd@gnu.org> | 2016-05-11 04:10:07 +0000 |
commit | ddd7c33e8e488ebfb163cef2ebd2ef6cbc9f6dc0 (patch) | |
tree | 8161ac83f5f26f4c93e5b677393e947c396c7de4 /libreplanet-templates/2016 | |
parent | faf6829a09cde3319c802ec3c0bda75855cb7cda (diff) |
Add `DescTBA` feature for LP Schedule.
From now on `DescTBA` can be given if the description for a session is
not decided yet; `DescTBA` will be filtered out of the generated HTML.
Addresses issue #4.
Diffstat (limited to 'libreplanet-templates/2016')
-rw-r--r-- | libreplanet-templates/2016/lp-schedule.jinja2 | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/libreplanet-templates/2016/lp-schedule.jinja2 b/libreplanet-templates/2016/lp-schedule.jinja2 index 1d7cd92..69099cf 100644 --- a/libreplanet-templates/2016/lp-schedule.jinja2 +++ b/libreplanet-templates/2016/lp-schedule.jinja2 @@ -89,17 +89,21 @@ {{ mk_speakers(session_info['speakers']) }} <p class="program-session-room-details"> {{ mk_room(session_info['room']) }} - <button class="btn btn-default btn-xs" - data-toggle="collapse" aria-expanded="false" - aria-controls="day-{{ day_index }}-timeslot-{{ timeslot_index }}-session-{{ loop.index }}-collapse" - data-target="#day-{{ day_index }}-timeslot-{{ timeslot_index }}-session-{{ loop.index }}-collapse"> - Details - </button> - </p> - <div class="collapse in" - id="day-{{ day_index }}-timeslot-{{ timeslot_index }}-session-{{ loop.index }}-collapse"> - {{ desc(session_info['desc']) }} - </div> <!-- day-{{ day_index }}-timeslot-{{ timeslot_index }}-session-{{ loop.index }}-collapse end --> + {% if session_info['desc'][0]|lower == 'desctba' %} + </p> + {% else %} + <button class="btn btn-default btn-xs" + data-toggle="collapse" aria-expanded="false" + aria-controls="day-{{ day_index }}-timeslot-{{ timeslot_index }}-session-{{ loop.index }}-collapse" + data-target="#day-{{ day_index }}-timeslot-{{ timeslot_index }}-session-{{ loop.index }}-collapse"> + Details + </button> + </p> + <div class="session-desc collapse in" + id="day-{{ day_index }}-timeslot-{{ timeslot_index }}-session-{{ loop.index }}-collapse"> + {{ desc(session_info['desc']) }} + </div> <!-- day-{{ day_index }}-timeslot-{{ timeslot_index }}-session-{{ loop.index }}-collapse end --> + {% endif %} </section> <!-- day-{{ day_index }}-timeslot-{{ timeslot_index }}-session-{{ loop.index }} end --> {% endfor %} {# session end #} {% endmacro %} |