Sha256: 057e15e04897e7d078d1aea1ef354b2f4ab731d9d1f2808be4fe26413d043443

Contents?: true

Size: 1.64 KB

Versions: 1

Compression:

Stored size: 1.64 KB

Contents

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

- galleries ||= @galleries


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

  .padded
    - if galleries.length > 0
      = form_tag update_galleries_path do
        - @tags.each do |tag|

          .Chip
            = check_box_tag 'tag_ids[]', tag.id
            = tag

        = submit_tag 'Add Tags', data: { confirm: 'Are you sure?' }
          
        %label remove?
        = check_box_tag :remove
        = submit_tag 'Tags', data: { confirm: 'Are you sure?' }

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

        = render '/wco/select_all'

        .row
          - galleries.each do |g|
            .col-sm-12.col-md-6
              .Card
                %h5
                  = check_box_tag 'gallery_ids[]', g.id, nil, { class: 'i-sel' }
                  = 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( @current_profile.show_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
      .p No Galleries



Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wco_models-3.1.0.140 app/views/wco/galleries/_index.haml