Commit 482ea439353db631c98fb979aba044afae29ef31
1 parent
e7ce66b2
Exists in
master
and in
29 other branches
ActionItem501: add button to back to control panel from design editor
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2202 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
2 changed files
with
6 additions
and
0 deletions
Show diff stats
app/views/box_organizer/index.rhtml
@@ -2,4 +2,5 @@ | @@ -2,4 +2,5 @@ | ||
2 | 2 | ||
3 | <% button_bar do %> | 3 | <% button_bar do %> |
4 | <%= lightbox_button('add', _('Add a block'), { :action => 'add_block' }) %> | 4 | <%= lightbox_button('add', _('Add a block'), { :action => 'add_block' }) %> |
5 | + <%= button(:back, _('Back to control panel'), :controller => 'profile_editor') %> | ||
5 | <% end %> | 6 | <% end %> |
test/functional/profile_design_controller_test.rb
@@ -236,5 +236,10 @@ class ProfileDesignControllerTest < Test::Unit::TestCase | @@ -236,5 +236,10 @@ class ProfileDesignControllerTest < Test::Unit::TestCase | ||
236 | 236 | ||
237 | end | 237 | end |
238 | 238 | ||
239 | + should 'display back to control panel button' do | ||
240 | + get :index, :profile => 'designtestuser' | ||
241 | + assert_tag :tag => 'a', :content => 'Back to control panel' | ||
242 | + end | ||
243 | + | ||
239 | end | 244 | end |
240 | 245 |