On 05/25/2011 09:40 AM, jtomasek(a)redhat.com wrote:
From: Jiri Tomasek<jtomasek(a)redhat.com>
---
src/app/controllers/application_controller.rb | 2 +-
src/app/views/layouts/_nav_history.haml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/app/controllers/application_controller.rb
b/src/app/controllers/application_controller.rb
index d3c7008..7dd1d08 100644
--- a/src/app/controllers/application_controller.rb
+++ b/src/app/controllers/application_controller.rb
@@ -246,7 +246,7 @@ class ApplicationController< ActionController::Base
viewstate = @viewstate ? @viewstate.id : nil
if breadcrumbs.empty? or path != breadcrumbs.last[:path]
- breadcrumbs.push({:name => name, :path => path, :viewstate =>
viewstate})
+ breadcrumbs.push({:name => name, :path => path, :viewstate =>
viewstate, :class => controller_name})
end
session[:breadcrumbs] = breadcrumbs
diff --git a/src/app/views/layouts/_nav_history.haml
b/src/app/views/layouts/_nav_history.haml
index 6aaaa73..1a95c45 100644
--- a/src/app/views/layouts/_nav_history.haml
+++ b/src/app/views/layouts/_nav_history.haml
@@ -3,5 +3,5 @@
%span.label.light.small« Return to
%ol.nav_hist_bar
- session[:breadcrumbs][0..1].each do |breadcrumb|
- %li
+ %li{:class => breadcrumb[:class]}
= link_to breadcrumb[:name].titleize, breadcrumb[:path]
ACK and pushed.
Thomas
--
No trees were killed to send this message, but a large number of
electrons were terribly inconvenienced.