Sha256: 90772a0acc36db37d1406f2d7e78621024b02be78e1625cdc1a1c5b94fcc6fae

Contents?: true

Size: 721 Bytes

Versions: 4

Compression:

Stored size: 721 Bytes

Contents

- readers ||= []

- if readers.any?
  - if readers.respond_to?(:previous_page) && readers.previous_page
    = pagination_and_summary_for(readers, t('reader_extension.person'))

  - if @display == 'gallery'
    - if readers.size > 1
      - cols = 3
      - columns = readers.in_groups_of((readers.size / cols), false)
    - else
      - columns = [readers]
    - columns.each do |column|
      %div.column
        = render :partial => 'readers/mugshot', :collection => column

  - else
    %table.readers
      %tbody
        = render :partial => 'readers/reader', :collection => readers

  - if readers.respond_to?(:next_page) && readers.next_page
    = pagination_and_summary_for(readers, t('reader_extension.person'))

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
radiant-reader-extension-3.0.3 app/views/readers/_list.html.haml
radiant-reader-extension-3.0.2 app/views/readers/_list.html.haml
radiant-reader-extension-3.0.1 app/views/readers/_list.html.haml
radiant-reader-extension-3.0.0 app/views/readers/_list.html.haml