Sha256: 1353c986d6405c9a19752409e7ed540dc3e708a53b9f7f64955115e80774c3ce

Contents?: true

Size: 797 Bytes

Versions: 2

Compression:

Stored size: 797 Bytes

Contents

<% content_for :title do %>
  <%= @photo_album.title %> | <%= Spud::Core.site_name %>
<% end %>

<% content_for :head do %>

<% end %>

<h2>Photo Album: <%= @photo_album.title %></h2>

<% if @photo_gallery %>
  <% if @photo_gallery.albums.length == 1 %>
    <p><%= link_to 'Back to Galleries', photo_galleries_path %>
  <% else %>
    <p><%= link_to 'Back to Gallery', photo_gallery_photo_albums_path(@photo_gallery.url_name) %>
  <% end %>
<% else %>
  <p><%= link_to 'Back to Albums', photo_albums_path %>
<% end %>

<div id="spud_photo_galleries">
  <% @photo_album.photos.each do |photo| %>
    <div class="spud_photo_album_thumbnail">
      <%= link_to image_tag(photo.photo.url(:small), :alt => photo.caption, :title => photo.title), photo.photo.url(:large) %>
    </div>
  <% end %>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tb_photos-1.0.3 app/views/photo_albums/show.html.erb
tb_photos-1.0.1 app/views/photo_albums/show.html.erb