remove old legacy code. now using carrierwave to retrieve url

rails2
Espen Antonsen 2010-07-28 00:27:47 +02:00
parent 9495b02e94
commit dfd2cf079c
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>