Sha256: 8b34a91c6588670ac4b8120fb3cce70d6b6721353e044a34e3deb08f9be7cb39

Contents?: true

Size: 731 Bytes

Versions: 3

Compression:

Stored size: 731 Bytes

Contents

- if res_collection.any?
  %table.list{list_table_options}
    %colgroup
      %col.list__col
      - column_names.each do |column|
        %col.list__col
      %col.list__col._del
      %col.list__col
    %thead
      %tr
        %th.list__head
        - column_names.each_with_index do |column, index|
          - if ['position', 'visible'].include? column
            %th.list__head.list__head_empty
          - else
            %th.list__head= model_name.human_attribute_name(column)
        %th.list__head.list__head_del
        %th.list__head
    = yield

  = paginate res_collection, theme: 'redde' if res_collection.method_defined?(:total_pages)

- else
  %h3
    Ни одной #{tplural(model_name)} не найдено

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
redde-0.3.11 app/views/admin/redde/_list.html.haml
redde-0.3.10 app/views/admin/redde/_list.html.haml
redde-0.3.9 app/views/admin/redde/_list.html.haml