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.1.30 app/views/galleries/index.html.haml
wheels-0.1.28 app/views/galleries/index.html.haml
wheels-0.1.27 app/views/galleries/index.html.haml
wheels-0.1.25 app/views/galleries/index.html.haml
wheels-0.1.24 app/views/galleries/index.html.haml
wheels-0.1.23 app/views/galleries/index.html.haml
wheels-0.1.22 app/views/galleries/index.html.haml
wheels-0.1.21 app/views/galleries/index.html.haml
wheels-0.1.20 app/views/galleries/index.html.haml
wheels-0.1.19 app/views/galleries/index.html.haml
wheels-0.1.18 app/views/galleries/index.html.haml
wheels-0.1.17 app/views/galleries/index.html.haml
wheels-0.1.16 app/views/galleries/index.html.haml
wheels-0.1.15 app/views/galleries/index.html.haml
wheels-0.1.14 app/views/galleries/index.html.haml
wheels-0.1.13 app/views/galleries/index.html.haml
wheels-0.1.12 app/views/galleries/index.html.haml
wheels-0.1.10 app/views/galleries/index.html.haml
wheels-0.1.9 app/views/galleries/index.html.haml
wheels-0.1.8 app/views/galleries/index.html.haml