Sha256: 6a10d66821b4072a217322da04569fbcb06ef8624139d743d4ea81e34d85ec59

Contents?: true

Size: 732 Bytes

Versions: 10

Compression:

Stored size: 732 Bytes

Contents

.page-header
  %h1
    .pull-right
      = link_to edit_event_path(@event), :class => 'btn btn-default' do
        %span.glyphicon.glyphicon-edit
      = link_to @event, :class => 'btn btn-danger', :method => :delete, :data => {:confirm => 'Are you sure?'} do
        %span.glyphicon.glyphicon-trash
    Events
    %small= @event.title

- if @event.gallery.photos.any?
  %h2 Gallery
  .text-center
    - @event.gallery.photos.each do |p|
      = image_tag p.photo.url, :class => 'img-responsive img-thumbnail'
      %br

- if @event.custom_gallery.photos.any?
  %h2 Custom Gallery
  .text-center
    - @event.custom_gallery.photos.each do |p|
      = image_tag p.photo.url(:large), :class => 'img-responsive img-thumbnail'
      %br

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
polygallery-0.2.1 test/dummy/app/views/events/show.html.haml
polygallery-0.1.9 test/dummy/app/views/events/show.html.haml
polygallery-0.1.8 test/dummy/app/views/events/show.html.haml
polygallery-0.1.7 test/dummy/app/views/events/show.html.haml
polygallery-0.1.6 test/dummy/app/views/events/show.html.haml
polygallery-0.1.4 test/dummy/app/views/events/show.html.haml
polygallery-0.1.2 test/dummy/app/views/events/show.html.haml
polygallery-0.1.1 test/dummy/app/views/events/show.html.haml
polygallery-0.1.0 test/dummy/app/views/events/show.html.haml
polygallery-0.0.9 test/dummy/app/views/events/show.html.haml