Commit 482ea439353db631c98fb979aba044afae29ef31

Authored by JoenioCosta
1 parent e7ce66b2

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
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 &lt; Test::Unit::TestCase @@ -236,5 +236,10 @@ class ProfileDesignControllerTest &lt; 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