Sha256: ed81b5e1e713d3ecdde55a0c7fe7059cfb1d75b34c468cc6702d283a38b6dc65

Contents?: true

Size: 533 Bytes

Versions: 2

Compression:

Stored size: 533 Bytes

Contents

- unless listing.scopes.empty?
  %ul.nav.nav-pills
    - listing.scopes.each do |scope|
      %li{class: "#{'active' if listing.is_active_scope(scope)}"}
        = link_to scope.human_name, listing.url_for_scope(scope)

%table.table.table-hover
  %thead
    - listing.columns.each do |col|
      %th
        = col.human_name

  %tbody
    - listing.items.each do |item|
      %tr
        - listing.columns.each do |col|
          %td
            = listing.value_for(col, item)

= paginate listing.items, :theme => 'twitter-bootstrap'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
listings-0.0.2 app/views/listings/_index.html.haml
listings-0.0.1 app/views/listings/_index.html.haml