remove old legacy code. now using carrierwave to retrieve url

This commit is contained in:
Espen Antonsen 2010-07-28 00:27:47 +02:00
parent e3ccbeb03b
commit c049033193
2 changed files with 4 additions and 3 deletions

View file

@ -15,8 +15,9 @@ module ApplicationHelper
level = level.gsub("-", " ")
if index+1 == levels.length
#links += " #{sep} #{level.upcase}" unless nocrumb.include?(level)
else
links += " #{sep} #{content_tag('a', level.upcase, :href => '/'+levels[0..index].join('/'))}" unless nocrumb.include?(level)
elsif !nocrumb.include?(level)
links += " " + sep + " "
links += content_tag('a', level.upcase, :href => '/'+levels[0..index].join('/'))
end
end

View file

@ -14,7 +14,7 @@
<% if album.photos.empty? %>
<%= album.title %>
<% else %>
<%= image_tag album.photos.first.path_modified_public('album'), :alt => album.title %>
<%= image_tag album.photos.first.file.album.url, :alt => album.title %>
<% end %>
<%= album_fields.hidden_field album.id %>
</span>