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 9495b02e94
commit dfd2cf079c
2 changed files with 4 additions and 3 deletions

View file

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

View file

@ -14,7 +14,7 @@
<% if album.photos.empty? %> <% if album.photos.empty? %>
<%= album.title %> <%= album.title %>
<% else %> <% 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 %> <% end %>
<%= album_fields.hidden_field album.id %> <%= album_fields.hidden_field album.id %>
</span> </span>