Sha256: f071eacc33bc288b87c7a044afacff08fea336d2d4899d2a02140770e1e40756

Contents?: true

Size: 654 Bytes

Versions: 26

Compression:

Stored size: 654 Bytes

Contents

- galleries = galleries.page( params[:galleries_page] ).per( 10 )

.manager-galleries--index
  .row
    .col-sm-12
      %h2 Galleries (#{galleries.length})

      = paginate galleries, :param_name => :galleries_page
      %ol
        - galleries.each do |gallery|
          %li
            - gallery.photos.unscoped.where({ :is_trash => false })[0...4].each do |photo|
              .mini= image_tag photo.photo.url( :thumb ), :alt => ''
            .clearfix
            #{link_to gallery.name, gallery_path( gallery )} (#{gallery.photos.unscoped.where({ :is_trash => false }).length})
      = paginate galleries, :param_name => :galleries_page
  %hr

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
ish_manager-0.1.8.52 app/views/ish_manager/galleries/_index.haml
ish_manager-0.1.8.51 app/views/ish_manager/galleries/_index.haml
ish_manager-0.1.8.50 app/views/ish_manager/galleries/_index.haml
ish_manager-0.1.8.49 app/views/ish_manager/galleries/_index.haml
ish_manager-0.1.8.47 app/views/ish_manager/galleries/_index.haml
ish_manager-0.1.8.46 app/views/ish_manager/galleries/_index.haml
ish_manager-0.1.8.45 app/views/ish_manager/galleries/_index.haml
ish_manager-0.1.8.44 app/views/ish_manager/galleries/_index.haml
ish_manager-0.1.8.43 app/views/ish_manager/galleries/_index.haml
ish_manager-0.1.8.41 app/views/ish_manager/galleries/_index.haml
ish_manager-0.1.8.40 app/views/ish_manager/galleries/_index.haml
ish_manager-0.1.8.39 app/views/ish_manager/galleries/_index.haml
ish_manager-0.1.8.38 app/views/ish_manager/galleries/_index.haml
ish_manager-0.1.8.37 app/views/ish_manager/galleries/_index.haml
ish_manager-0.1.8.36 app/views/ish_manager/galleries/_index.haml
ish_manager-0.1.8.35 app/views/ish_manager/galleries/_index.haml
ish_manager-0.1.8.34 app/views/ish_manager/galleries/_index.haml
ish_manager-0.1.8.33 app/views/ish_manager/galleries/_index.haml
ish_manager-0.1.8.32 app/views/ish_manager/galleries/_index.haml
ish_manager-0.1.8.31 app/views/ish_manager/galleries/_index.haml