Sha256: 853f2838cfe0f367646445729b512e058284d01658b0da4fb142a75d21406ae8

Contents?: true

Size: 1.6 KB

Versions: 21

Compression:

Stored size: 1.6 KB

Contents

- case @style
- when 'qanda'
  %div{:id=>@id, :class=>['qlist', 'qanda', role]}
    - if title?
      .title=title
    %ol
      - items.each do |questions, answer|
        %li
          - [*questions].each do |question|
            %p<
              %em=question.text
          - unless answer.nil?
            - if answer.text?
              %p<=answer.text
            - if answer.blocks?
              =answer.content.chomp
- when 'horizontal'
  %div{:id=>@id, :class=>['hdlist', role]}
    - if title?
      .title=title
    %table
      - if (attr? :labelwidth) || (attr? :itemwidth)
        %colgroup
          %col{:style=>((attr? :labelwidth) ? %(width:#{(attr :labelwidth).chomp '%'}%;) : nil)}
          %col{:style=>((attr? :itemwidth) ? %(width:#{(attr :itemwidth).chomp '%'}%;) : nil)}
      - items.each do |terms, dd|
        %tr
          %td{:class=>['hdlist1', ('strong' if (option? 'strong'))]}
            - terms = [*terms]
            - last_term = terms.last
            - terms.each do |dt|
              =dt.text
              - if dt != last_term
                %br
          %td.hdlist2
            - unless dd.nil?
              - if dd.text?
                %p<=dd.text
              - if dd.blocks?
                =dd.content.chomp
- else
  %div{:id=>@id, :class=>['dlist',@style,role]}
    - if title?
      .title=title
    %dl
      - items.each do |terms, dd|
        - [*terms].each do |dt|
          %dt{:class=>('hdlist1' unless @style)}=dt.text
        - unless dd.nil?
          %dd
            - if dd.text?
              %p<=dd.text
            - if dd.blocks?
              =dd.content.chomp

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
hyla-1.0.9 lib/resources/backends/haml/deckjs/block_dlist.html.haml
hyla-1.0.9.pre.3 lib/resources/backends/haml/deckjs/block_dlist.html.haml
hyla-1.0.9.pre.2 lib/resources/backends/haml/deckjs/block_dlist.html.haml
hyla-1.0.9.pre.1 lib/resources/backends/haml/deckjs/block_dlist.html.haml
hyla-1.0.8 lib/resources/backends/haml/deckjs/block_dlist.html.haml
hyla-1.0.7 lib/resources/backends/haml/deckjs/block_dlist.html.haml
hyla-1.0.7.pre.9 lib/resources/backends/haml/deckjs/block_dlist.html.haml
hyla-1.0.7.pre.8 lib/resources/backends/haml/deckjs/block_dlist.html.haml
hyla-1.0.7.pre.7 lib/resources/backends/haml/deckjs/block_dlist.html.haml
hyla-1.0.7.pre.6 lib/resources/backends/haml/deckjs/block_dlist.html.haml
hyla-1.0.7.pre.5 lib/resources/backends/haml/deckjs/block_dlist.html.haml
hyla-1.0.7.pre.3 lib/resources/backends/haml/deckjs/block_dlist.html.haml
hyla-1.0.7.pre.2 lib/resources/backends/haml/deckjs/block_dlist.html.haml
hyla-1.0.7.pre.1 lib/resources/backends/haml/deckjs/block_dlist.html.haml
hyla-1.0.6 lib/resources/backends/haml/deckjs/block_dlist.html.haml
hyla-1.0.5 lib/resources/backends/haml/deckjs/block_dlist.html.haml
hyla-1.0.5.pre.1 lib/resources/backends/haml/deckjs/block_dlist.html.haml
hyla-1.0.4 lib/resources/backends/haml/deckjs/block_dlist.html.haml
hyla-1.0.3 lib/resources/backends/haml/deckjs/block_dlist.html.haml
hyla-1.0.2 lib/resources/backends/haml/deckjs/block_dlist.html.haml