Sha256: 5cf3a1b650786bb5fa036b59bd85247ab234821617aa4f0f4986ab3515a28ba4

Contents?: true

Size: 1.11 KB

Versions: 65

Compression:

Stored size: 1.11 KB

Contents

-#
-# wco / galleries / _index.haml
-#
-# _vp_ 2022-09-25 :: Small styling revision
-#

- n_thumbs  ||= 8
- galleries ||= @galleries

.galleries--index.maxwidth
  = render 'header', galleries: galleries

  .padded
    - if galleries.length > 0

      - if galleries.respond_to? :total_pages
        = paginate galleries, :param_name => :galleries_page, :views_prefix => 'wco'

      .row
        - galleries.each do |g|
          .col-sm-12.col-md-6
            .Card
              %h5
                = 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
                No Photos
              - else
                .d-flex.flex-wrap.photos-thumbs
                  - g.photos.limit( n_thumbs ).each do |photo|
                    = link_to image_tag(photo.photo.url(:thumb), :alt => ''), gallery_path(g.slug)

      - if galleries.respond_to? :total_pages
        = paginate galleries, :param_name => :galleries_page, :views_prefix => 'wco'

    - else
      %h5 No Galleries

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
wco_models-3.1.0.134 app/views/wco/galleries/_index.haml
wco_models-3.1.0.133 app/views/wco/galleries/_index.haml
wco_models-3.1.0.132 app/views/wco/galleries/_index.haml
wco_models-3.1.0.131 app/views/wco/galleries/_index.haml
wco_models-3.1.0.130 app/views/wco/galleries/_index.haml
wco_models-3.1.0.129 app/views/wco/galleries/_index.haml
wco_models-3.1.0.128 app/views/wco/galleries/_index.haml
wco_models-3.1.0.127 app/views/wco/galleries/_index.haml
wco_models-3.1.0.126 app/views/wco/galleries/_index.haml
wco_models-3.1.0.125 app/views/wco/galleries/_index.haml
wco_models-3.1.0.124 app/views/wco/galleries/_index.haml
wco_models-3.1.0.123 app/views/wco/galleries/_index.haml
wco_models-3.1.0.122 app/views/wco/galleries/_index.haml
wco_models-3.1.0.121 app/views/wco/galleries/_index.haml
wco_models-3.1.0.120 app/views/wco/galleries/_index.haml
wco_models-3.1.0.119 app/views/wco/galleries/_index.haml
wco_models-3.1.0.118 app/views/wco/galleries/_index.haml
wco_models-3.1.0.117 app/views/wco/galleries/_index.haml
wco_models-3.1.0.116 app/views/wco/galleries/_index.haml
wco_models-3.1.0.115 app/views/wco/galleries/_index.haml