Sha256: efff93df7e45b5b0d5d36bdf1cb9dc1cc9248872d8614c8c65e1f78eb303e6f5

Contents?: true

Size: 1.09 KB

Versions: 15

Compression:

Stored size: 1.09 KB

Contents

- if (checklist = (option? :checklist) ? 'checklist' : nil)
  - if option? :interactive
    - marker_checked = '<input type="checkbox" data-item-complete="1" checked>'
    - marker_unchecked = '<input type="checkbox" data-item-complete="0">'
  - else
    - if @document.attr? :icons, 'font'
      - marker_checked = '<i class="icon-check"></i>'
      - marker_unchecked = '<i class="icon-check-empty"></i>'
    - else 
      / could use &#9745 (checked ballot) and &#9744 (ballot) w/o font instead
      - marker_checked = '<input type="checkbox" data-item-complete="1" checked disabled>'
      - marker_unchecked = '<input type="checkbox" data-item-complete="0" disabled>'
.ulist id=@id class=[checklist,@style,role]
  - if title?
    .title=title
  ul class=(checklist || @style)
    - items.each do |item|
      li class=('fragment' if (option? :step) || (has_role? 'step'))
        p
          - if checklist && (item.attr? :checkbox)
            =%(#{(item.attr? :checked) ? marker_checked : marker_unchecked}#{item.text})
          - else
            =item.text
        - if item.blocks?
          =item.content

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
asciidoctor-revealjs-4.0.1 templates/ulist.html.slim
asciidoctor-revealjs-4.0.0 templates/ulist.html.slim
asciidoctor-revealjs-3.1.0 templates/ulist.html.slim
asciidoctor-revealjs-3.0.0 templates/ulist.html.slim
asciidoctor-revealjs-3.0.0.pre.rc1 templates/ulist.html.slim
asciidoctor-revealjs-2.0.1 templates/ulist.html.slim
asciidoctor-revealjs-2.0.0 templates/ulist.html.slim
asciidoctor-revealjs-1.1.3 templates/ulist.html.slim
asciidoctor-revealjs-1.1.1 templates/ulist.html.slim
asciidoctor-revealjs-1.1.0 templates/ulist.html.slim
asciidoctor-revealjs-1.0.4 templates/slim/block_ulist.html.slim
asciidoctor-revealjs-1.0.3 templates/slim/block_ulist.html.slim
asciidoctor-revealjs-1.0.2 templates/slim/block_ulist.html.slim
asciidoctor-revealjs-1.0.1 templates/slim/block_ulist.html.slim
asciidoctor-revealjs-1.0.0 templates/slim/block_ulist.html.slim