Sha256: 7b7d6e8575af4fdc4150e1730dbe32a42137f29608eacec315831169be1be015

Contents?: true

Size: 607 Bytes

Versions: 73

Compression:

Stored size: 607 Bytes

Contents

%h1 #{@user.profile.alias}'s Galleries
%ul
  - @galleries.each do |gallery|
    %li
      %h2= link_to (gallery.name || "No name"), gallery_path(gallery, ckeditor_params)
      - unless gallery.images.empty?
        = image_tag gallery.images[0].image.url(:medium)
      - if can? :update, gallery
        = link_to 'Edit', edit_gallery_path(gallery, ckeditor_params)
      - if can? :manage, gallery
        = link_to 'Destroy', gallery_path(gallery, ckeditor_params), "data-confirm"=>"Sure? All the images from this gallery will be gone...", :method=>"delete"


= link_to 'New gallery', new_gallery_path

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
wheels-0.0.37 app/views/galleries/index.html.haml
wheels-0.0.36 app/views/galleries/index.html.haml
wheels-0.0.35 app/views/galleries/index.html.haml
wheels-0.0.34 app/views/galleries/index.html.haml
wheels-0.0.33 app/views/galleries/index.html.haml
wheels-0.0.32 app/views/galleries/index.html.haml
wheels-0.0.31 app/views/galleries/index.html.haml
wheels-0.0.30 app/views/galleries/index.html.haml
wheels-0.0.29 app/views/galleries/index.html.haml
wheels-0.0.28 app/views/galleries/index.html.haml
wheels-0.0.27 app/views/galleries/index.html.haml
wheels-0.0.26 app/views/galleries/index.html.haml
wheels-0.0.25 app/views/galleries/index.html.haml
wheels-0.0.24 app/views/galleries/index.html.haml
wheels-0.0.23 app/views/galleries/index.html.haml
wheels-0.0.22 app/views/galleries/index.html.haml
wheels-0.0.21 app/views/galleries/index.html.haml
wheels-0.0.20 app/views/galleries/index.html.haml
wheels-0.0.19 app/views/galleries/index.html.haml
wheels-0.0.18 app/views/galleries/index.html.haml