<%= photo.title %> <% unless photo.date_shot.blank? %> (<%= photo.date_shot %>) <% end -%> <%= link_to "Edit Photo", edit_photo_path(photo, :format => :html, :edit => 'photo'), :class => "settings", :title => "Photo Settings" %>