Sha256: 4ff2b82a7e7b8e76b47cf50128f43bba3da77deca7615a8493f0a91c10f80aa0

Contents?: true

Size: 864 Bytes

Versions: 1

Compression:

Stored size: 864 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

1 entries across 1 versions & 1 rubygems

Version Path
lasha-0.3.3 app/views/shared/_index_generator.html.slim