Sha256: 4ba149f98f1415275dcd188889ba9a952fccfe3243cf3d815c358ffbb18e6518
Contents?: true
Size: 1.1 KB
Versions: 71
Compression:
Stored size: 1.1 KB
Contents
-# -# ish_manager / galleries / _index.haml -# -# _vp_ 2022-09-25 :: Small styling revision -# - n_thumbs ||= 8 .collapse-expand#galleriesIndex = render 'ish_manager/galleries/menu', count: @galleries.count .galleries--index - if @galleries.length > 0 - if @galleries.respond_to? :total_pages = paginate @galleries, :param_name => :galleries_page, :views_prefix => 'ish_manager' .row - @galleries.each do |g| .col-sm-12.col-md-6 .bordered-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 .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 => :galleries_page, :views_prefix => 'ish_manager' - else %h5 No Galleries
Version data entries
71 entries across 71 versions & 1 rubygems