<% throw_content :for_sidebar do -%> <% if allowed_to?(:create_albums) -%>Create Album Create An Album
<% end -%> <% if allowed_to?(:upload_images) -%> Upload Image
<% end %>

Popular Tags

<%= tag_cloud @tags %>
<% end -%> <% throw_content :for_stylesheet do -%> .photo_collection_item { word-wrap: break-word; width: 170px; min-height: 180px; max-height: 200px; margin-top: 15px; padding: 5px; text-align: center; border: 1px solid #BBB; float: left; position: relative; } .col_1 { margin-left: 10px; } .col_2 { margin-left: 10px; } .col_0 { margin-left: 10px; } <% end -%> <% if @albums.empty? -%>

There were no albums found!

<% else -%> <% @albums.each_with_index do |album, index| -%>

<%= album.name -%> (<%= album.photos.size -%> photos)

<% if album.album_thumbnail -%><% end -%>
<% end -%>
<%= partial 'shared/pagination_links' %> <% end -%>