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