Sha256: eae201d55e46c9afa96895ae518c982e4896bcc9ad2e653de3c024d751fe3cd2

Contents?: true

Size: 863 Bytes

Versions: 6

Compression:

Stored size: 863 Bytes

Contents

h2.text-center Listing #{data[:model]}-s
.row
  .col-sm-12
    .table-responsive
      table.table.table-bordered.table-hover.table-sm
        thead.thead-dark
          tr
            - data[:attributes].each do |attribute|
              th.text-center = attribute
            - data[:actions].each do |action|
              th.text-center

        tbody
          - data[:collection].each do |item|
            tr
              - data[:attributes].each do |attribute|
                - attribute = item.read_attribute(attribute)
                - if attribute.is_a? ActiveSupport::TimeWithZone
                  td = l attribute, format: :short
                - else
                  td = attribute

              - data[:actions].each do |action|
                td = link_to action, url_for([data[:namespace], item]), class: "btn btn-light btn-xs btn-block"

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lasha-0.3.2 app/views/shared/_index_generator.html.slim
lasha-0.3.1 app/views/shared/_index_generator.html.slim
lasha-0.3.0 app/views/shared/_index_generator.html.slim
lasha-0.2.7 app/views/shared/_index_generator.html.slim
lasha-0.2.6 app/views/shared/_index_generator.html.slim
lasha-0.2.5 app/views/shared/_index_generator.html.slim