A new Riff-radio.org site with a static approach.

slides.tmpl 1020B

12345678910111213141516171819202122232425
  1. <%block name="content">
  2. <div id="${carousel_id}" class="carousel slide">
  3. <ol class="carousel-indicators">
  4. % for i in range(len(slides_content)):
  5. % if i == 0:
  6. <li data-target="#${carousel_id}" data-slide-to="${i}" class="active"></li>
  7. % else:
  8. <li data-target="#${carousel_id}" data-slide-to="${i}"></li>
  9. % endif
  10. % endfor
  11. </ol>
  12. <div class="carousel-inner">
  13. % for i, image in enumerate(slides_content):
  14. % if i == 0:
  15. <div class="item active"><img src="${image}" alt="" style="margin: 0 auto 0 auto;"></div>
  16. % else:
  17. <div class="item"><img src="${image}" alt="" style="margin: 0 auto 0 auto;"></div>
  18. % endif
  19. % endfor
  20. </div>
  21. <a class="left carousel-control" href="#${carousel_id}" data-slide="prev"><span class="icon-prev"></span></a>
  22. <a class="right carousel-control" href="#${carousel_id}" data-slide="next"><span class="icon-next"></span></a>
  23. </div>
  24. </%block>