reverse you

rails2
Espen Antonsen 2009-10-26 16:29:59 +01:00
parent e040a98bf2
commit b65bce12d1
1 changed files with 2 additions and 2 deletions

View File

@ -12,9 +12,9 @@
<span>
<img src="/images/delete-24x24.png" border="" class="delete" />
<% if album.photos.empty? %>
<%= image_tag album.photos.first.path_modified_public('album'), :alt => album.title %>
<%= album.title %>
<% else %>
<%= album.title %>
<%= image_tag album.photos.first.path_modified_public('album'), :alt => album.title %>
<% end %>
<%= album_fields.hidden_field album.id %>
</span>