<% throw_content :for_sidebar do -%> <% if allowed_to?(:create_albums) -%>Create Album Create An Album
<% end -%> <% if allowed_to?(:edit_album) -%> Edit Album
<% end %> <% if allowed_to?(:delete_albums) -%> Destroy Album
<% end %> <% if allowed_to?(:upload_images) -%> Upload Image
<% end %> <% end -%> <% throw_content :for_stylesheet do -%> .photo_collection_item { word-wrap: break-word; max-width: 150px; max-height: 150px; margin-top: 15px; margin-bottom: 15px; padding: 3px; border: 1px solid #BBB; float: left; position: relative; } .col_1, .col_2, .col_0 { margin-left: 15px; margin-right: 15px; } <% end -%>

<%= @album.name -%>

<% @photos.each_with_index do |photo, idx| -%>
<% if (idx + 1) % 3 == 0 or @photos.last == photo -%>
<% end -%> <% end -%> <% unless @album.tags.empty? -%>
<% end -%>
<%= partial 'shared/pagination_links' %>