From 482ea439353db631c98fb979aba044afae29ef31 Mon Sep 17 00:00:00 2001 From: JoenioCosta Date: Thu, 10 Jul 2008 22:35:03 +0000 Subject: [PATCH] ActionItem501: add button to back to control panel from design editor --- app/views/box_organizer/index.rhtml | 1 + test/functional/profile_design_controller_test.rb | 5 +++++ 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/app/views/box_organizer/index.rhtml b/app/views/box_organizer/index.rhtml index 93b0161..940eaa0 100644 --- a/app/views/box_organizer/index.rhtml +++ b/app/views/box_organizer/index.rhtml @@ -2,4 +2,5 @@ <% button_bar do %> <%= lightbox_button('add', _('Add a block'), { :action => 'add_block' }) %> + <%= button(:back, _('Back to control panel'), :controller => 'profile_editor') %> <% end %> diff --git a/test/functional/profile_design_controller_test.rb b/test/functional/profile_design_controller_test.rb index 750ddff..1f1d4cb 100644 --- a/test/functional/profile_design_controller_test.rb +++ b/test/functional/profile_design_controller_test.rb @@ -236,5 +236,10 @@ class ProfileDesignControllerTest < Test::Unit::TestCase end + should 'display back to control panel button' do + get :index, :profile => 'designtestuser' + assert_tag :tag => 'a', :content => 'Back to control panel' + end + end -- libgit2 0.21.2