photomix/app/views/albums/show.html.erb

15 lines
550 B
Plaintext
Raw Normal View History

2009-06-05 14:18:03 +02:00
<h1><%= @album.title %></h1>
2009-06-02 00:08:57 +02:00
<% for photo in @album.photos %>
2009-06-03 01:33:39 +02:00
<%= link_to image_tag( photo.path_modified_public("album") ), photo %>
2009-05-25 21:39:43 +02:00
<% end %>
2009-06-05 14:18:03 +02:00
<p><%= @album.description %></p>
2009-06-09 00:30:22 +02:00
<% if has_permission?("see_album_note") %>
2009-06-05 14:18:03 +02:00
<p><%= @album.note %></p>
<% end %>
2009-05-25 21:39:43 +02:00
2009-06-09 00:30:22 +02:00
<% if has_role?("admin") %>
2009-06-02 00:08:57 +02:00
<br /><%= link_to "Update album", edit_album_path(@album) %>
2009-06-09 00:30:22 +02:00
<br /><%= link_to "Update photos", edit_multiple_album_photos_path(@album) %>
<br /><%= link_to "Upload photos", upload_album_photos_path(@album) %>
<% end %>
2009-06-02 00:08:57 +02:00
<br /><%= link_to "All albums", albums_path %>