Sha256: 5e672e3ff252a21613e3d1466257d28b06831daf97fa3115a467010f735f7356
Contents?: true
Size: 960 Bytes
Versions: 1
Compression:
Stored size: 960 Bytes
Contents
<% if @gallery %> <% content_for :head do %> <%= stylesheet_link_tag "sofa_gallery/thumbnails.css" %> <%= javascript_include_tag "sofa_gallery/thumbnails.js" %> <% end %> <ul id="<%= dom_id(@gallery)%>" class="gallery"> <h2><%= @gallery.title %></h2> <p><%= @gallery.description %></p> <br /> <% if @gallery.photos.count > 0 %> <% @gallery.photos.order(:position).each do |photo| %> <li id="<%= dom_id(photo) %>"> <div class="photo" style="width: <%= @gallery.thumb_width %>px; height: <%= @gallery.thumb_height %>px;"> <%= link_to photo.image.url(:full), :rel => "prettyPhoto[pp_gal]", :title => photo.description do %> <%= image_tag(photo.image.url(:thumb), :alt => photo.description) %> <% end %> </div> </li> <% end %> <% else %> <em>No photos in this gallery.</em> <% end %> </ul> <% else %> Gallery not found. <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sofa_gallery-0.0.6 | app/views/sofa_gallery/_thumbnails.html.erb |