% throw_content :for_sidebar do -%>
<% if allowed_to?(:create_albums) -%> 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 %>
<% unless @album.tags.empty? -%>
Album Tags
<%= @album.tags.collect { |t| "#{t.name}" }.join(' ') %>Tags in Photos
<%= ptags.collect { |t| "#{t}" }.join(' ') %>