On 07/07/2011 11:17 AM, jtomasek(a)redhat.com wrote:
From: Jiri Tomasek<jtomasek(a)redhat.com>
---
src/app/controllers/settings_controller.rb | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/app/controllers/settings_controller.rb
b/src/app/controllers/settings_controller.rb
index 5be3ba9..005d4ce 100644
--- a/src/app/controllers/settings_controller.rb
+++ b/src/app/controllers/settings_controller.rb
@@ -1,6 +1,11 @@
class SettingsController< ApplicationController
before_filter :require_user
+ def index
+ clear_breadcrumbs
+ save_breadcrumb(settings_path(:viewstate => @viewstate ? @viewstate.id : nil))
+ end
+
def top_section
:administer
end
ACK & pushed.
Just so you know, the viewstate lib provides a method called
`viewstate_id` which returns the uuid of the current viewstate or nil if
it's not defined. So the breadcrumb saving can be shortened thusly:
save_breadcrumb(settings_path(:viewstate => viewstate_id))
Thomas
--
No trees were killed to send this message, but a large number of
electrons were terribly inconvenienced.