Sha256: be729077c857671f5b08e4d840b3608829887d08c2a771310a3a37dae2e8a170

Contents?: true

Size: 788 Bytes

Versions: 7

Compression:

Stored size: 788 Bytes

Contents

<% content_for :title do %>
  <%= (@photo_gallery ? @photo_gallery.title : 'Photo Albums') %> | <%= Spud::Core.site_name %>
<% end %>

<% content_for :head do %>
  
<% end %>

<h2><%= (@photo_gallery ? "Photo Gallery: #{@photo_gallery.title}" : 'Photo Albums') %></h2>

<% if Spud::Photos.galleries_enabled %>
  <p><%= link_to 'Back to Galleries', photo_galleries_path %></p>
<% end %>

<div id="spud_photo_albums">
  <% @photo_albums.each do |album| %>
    <div class="spud_photo_album_thumbnail">
      <h3>
        <%= link_to album.title, (@photo_gallery ? photo_gallery_photo_album_path(@photo_gallery.url_name, album.url_name) : photo_album_path(album.url_name)) %>
      </h3>
      <%= image_tag album.top_photo_url(:medium), :title => album.title %>
    </div>
  <% end %>
</div>

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
tb_photos-1.0.3 app/views/photo_albums/index.html.erb
tb_photos-1.0.1 app/views/photo_albums/index.html.erb
spud_photos-0.9.4 app/views/photo_albums/index.html.erb
spud_photos-0.9.3 app/views/photo_albums/index.html.erb
tb_photos-1.0 app/views/photo_albums/index.html.erb
spud_photos-0.9.2 app/views/photo_albums/index.html.erb
spud_photos-0.9.1 app/views/photo_albums/index.html.erb