diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index c89fa05..82b6978 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -11,7 +11,7 @@ module ApplicationHelper nocrumb = ["collections", "albums", "photos", "tags"] levels.each_with_index do |level, index| - level = level.gsub(/[0-9]+-/,"") if levels[index-1] == "photos" + level = level.gsub(/^[0-9]+\-/,"") #if levels[index-1] == "photos" level = level.gsub("-", " ") if index+1 == levels.length links += " #{sep} #{level.upcase}" unless nocrumb.include?(level) @@ -20,6 +20,6 @@ module ApplicationHelper end end - content_tag("div", content_tag("p", links ), :id => "breadcrumb") + content_tag("p", links, :id => "breadcrumb") end end diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 7bd58e4..1a16706 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -11,9 +11,7 @@