{#- chirp-ui: Chapter List component Expandable list of video chapters with timestamps. Usage: from "chirpui/chapter_list.html" import chapter_list, chapter_item call chapter_list(summary="Chapters") chapter_item(title="Introduction", timestamp="0:00", href="/watch/1#t=0") chapter_item(title="Setup", timestamp="2:34", href="/watch/1#t=154") chapter_item(title="Demo", timestamp="5:12", href="/watch/1#t=312") end Slots: summary_actions (actions next to summary). -#} {% def chapter_list(summary="Chapters", open=false, cls="") %}
{{ summary }} {% slot summary_actions %}
    {% slot %}
{% end %} {% def chapter_item(title, timestamp, href=none, cls="") %}
  • {% if href %} {{ timestamp }} {{ title }} {% else %} {{ timestamp }} {{ title }} {% end %}
  • {% end %}