Sha256: 95fb35ac8e0faaf1262f71719379109cede75b8ee5affcaf6ec5bf0104417898

Contents?: true

Size: 1.08 KB

Versions: 1

Compression:

Stored size: 1.08 KB

Contents

-#
-# ish_manager / galleries / _index.haml
-#

- n_thumbs   ||= 8
- param_name ||= :galleries_page

.galleries--index.-index

  = render 'ish_manager/galleries/menu'

  - if @galleries.length > 0

    - if @galleries.respond_to? :total_pages
      = paginate @galleries, :param_name => param_name, :views_prefix => 'ish_manager'

    .row
      - @galleries.each do |g|
        .col.s6
          .item.panel
            .panel-body
              %h3
                = link_to '[~]', edit_gallery_path( g )
                = link_to g.name, gallery_path(g.slug)
                (#{g.photos.length})
              = render 'meta', item: g
              - if g.photos.length == 0
                = image_missing
              - else
                .thumbnails.flex-row
                  - g.photos.limit( n_thumbs ).each do |photo|
                    = link_to image_tag(photo.photo.url(:thumb), :alt => g.name), gallery_path(g.slug)

      - if @galleries.respond_to? :total_pages
        = paginate @galleries, :param_name => param_name, :views_prefix => 'ish_manager'

  - else
    %h5 No Galleries

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ish_manager-0.1.8.264 app/views/ish_manager/galleries/_index.haml