diff options
author | jantwisted <janith@member.fsf.org> | 2015-12-16 01:39:41 +0530 |
---|---|---|
committer | jantwisted <janith@member.fsf.org> | 2015-12-16 01:39:41 +0530 |
commit | 01997af8b0c04318c2c76afc29eb043052e3d793 (patch) | |
tree | 6d5b36f1c28ed03d94c153e8102bb166042cb419 /tests/files/index.html | |
parent | 911fd27e4c4c61b978c2370f7e92b051f0636614 (diff) |
HTMLRender added
Diffstat (limited to 'tests/files/index.html')
-rw-r--r-- | tests/files/index.html | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/tests/files/index.html b/tests/files/index.html new file mode 100644 index 0000000..8dac6e0 --- /dev/null +++ b/tests/files/index.html @@ -0,0 +1,52 @@ + {% for key, value in res.iteritems() %} + <header class="program-day-header"> + <hgroup> + <h2>{{ key }} + <a class="btn btn-default btn-xs" role="button" + data-toggle="collapse" aria-expanded="false" + aria-controls="sat-timeslots" + href="#sat-timeslots"> + ↓ + </a> + </h2> + </hgroup> + </header> + + <div class="collapse in" id="sat-timeslots"> + {% for key2, value2 in value.iteritems() %} + <article id="sat-ts-b0" + class="program-timeslot-break"> <!-- sat-ts-b0 start --> + <header class="program-timeslot-break-header"> + <hgroup> + <h2>{{ key2 }}</h2> + </hgroup> + </header> + {# conditional content #} + {% if value2|count > 0 %} + <div class="collapse in" + id="sat-ts0-sessions"> <!-- sat-ts0-sessions start --> + {% for key3, value3 in value2.iteritems() %} + <section id="sat-ts0-s0" class="program-session"> <!-- sat-ts0-s0 start --> + <header class="program-session-header"> + <h2>{{ key3 }}</h2> + </header> + <a href="#" class="program-session-speaker">{{ value3['speaker'] }}</a> + +<button class="btn btn-default btn-xs" +data-toggle="collapse" aria-expanded="false" +aria-controls="sat-ts0-s0-collapse" +data-target="#sat-ts0-s0-collapse"> +Details +</button> +<div class="collapse in" id="sat-ts0-s0-collapse"> +<p><span class="label label-default">{{ value3['room'] }}</span></p> + +<p>{{ value3['desc'][0].decode('utf-8') }}</p> +</div> +</section> <!-- sat-ts0-s0 end --> + </div> <!-- sat-ts0-sessions end --> + {% endfor %} + {% endif %} + </article> + {% endfor %} +{% endfor %} |