Sha256: 22c1e651d426178ae5e75c0e14e871ac90a2858c9ec95805c06322437845ba0a
Contents?: true
Size: 1.07 KB
Versions: 2
Compression:
Stored size: 1.07 KB
Contents
- klass = locals[:klass] - id = locals[:id] - header = locals[:header] - rows = locals[:rows] - total = locals[:total] %table(class=klass id=id) -# HEAD - if Array === header %thead - header.each do |field| %th(class=field)= field -# BODY %tbody - rows.each do |id, values| %tr(id=id) - if Array === values - values.each do |value| - value = value.link if value.respond_to? :link - type = value.respond_to?(:format)? value.format : "" - if Array === value %td(class=type)= value * ", " - else %td(class=type)= value - else - value = value.link if value.respond_to? :link - type = value.respond_to?(:format)? value.format : "" %td(class=type)= value -# FOOT (paginate) - if locals.include? :step %tfoot %tr %th(colspan="#{header.length}") = workflow_partial('partials/_result_table_controls', workflow, task, locals.merge(:fields => header, :total => total))
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rbbt-views-1.0.1 | share/views/partials/_table.haml |
rbbt-views-1.0.0 | share/views/partials/_table.haml |