Sha256: b3203749a713e6a7d32c08835a49e253c9e9581f79897838e3b84800362d2d4a
Contents?: true
Size: 1.12 KB
Versions: 16
Compression:
Stored size: 1.12 KB
Contents
-# -# ish_manager / galleries / _index.haml -# -# _vp_ 2022-09-25 :: Small styling revision -# - n_thumbs ||= 12 .galleries--index .max-width = render 'ish_manager/galleries/menu', count: galleries.count %hr .padded - 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 .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
16 entries across 16 versions & 1 rubygems