<% title h(@album.title) %> <% heading h(@album.title.titleize) %> <%= stylesheet( 'dust_album','uploadify') %> <%= render :partial => "upload_script" %>
<%= link_to "", edit_album_path(@album), :class => 'edit' %> <%= link_to "", @album, :confirm => 'Are you sure?', :method => :delete, :class => 'destroy' %>
<%= simple_format(h(@album.desc)) %>

<%= pluralize(@album.photos.size, "Photo")%> <% unless @album.photos.empty? %> | <%= link_to "Manage Photos", photos_path %> <% end %>

<%= render @album.photos %>
<% content_for :left do -%>

Add Photos to <%= @album.title.titleize %>

<% form_for @new_photo, :html => {:multipart => true} do |f| %> <%= f.hidden_field :album_id, "value" => @album.id %>
<%= image_submit_tag "Upload.png", :id => "photo_submit", :name => 'commit' %> <%= f.file_field :file %>
<% end %>
<% end -%>