Sha256: 38a5b358074a17e55dd58c48b405e1ec913333c392c8efa1c1b766dff18c1a29

Contents?: true

Size: 777 Bytes

Versions: 2

Compression:

Stored size: 777 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" style="width: <%= @gallery.gallery_width %>px;">
    <% @gallery.photos.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 %>
  </ul>
<% else %>
  Gallery not found.
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sofa_gallery-0.0.2 app/views/sofa_gallery/_thumbnails.html.erb
sofa_gallery-0.0.1 app/views/sofa_gallery/_thumbnails.html.erb