From 6070f49ce2c773e7f2fa422c2fa9b039f1635b75 Mon Sep 17 00:00:00 2001 From: JoenioCosta Date: Fri, 16 May 2008 19:51:43 +0000 Subject: [PATCH] ActionItem355: add Edit Profile --- app/views/profile_editor/index.rhtml | 2 ++ test/functional/profile_editor_controller_test.rb | 6 ++++++ 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/app/views/profile_editor/index.rhtml b/app/views/profile_editor/index.rhtml index d887639..058cb1c 100644 --- a/app/views/profile_editor/index.rhtml +++ b/app/views/profile_editor/index.rhtml @@ -10,6 +10,8 @@ <%= file_manager_button(_('Change your picture'), profile_icon(@profile, :portrait), :controller => 'profile_editor', :action => 'change_image') %> + <%= file_manager_button(_('Edit Profile'), 'icons-app/edit-profile.png', :controller => 'profile_editor', :action => 'edit') %> + <%= file_manager_button(_('Pending tasks'), 'icons-app/todo.png', :controller => 'tasks', :action => 'index') %> <%= file_manager_button(_('Edit Visual Design'), 'icons-app/design-editor.png', :controller => 'profile_design', :action => 'index') %> diff --git a/test/functional/profile_editor_controller_test.rb b/test/functional/profile_editor_controller_test.rb index 725b3d8..1961149 100644 --- a/test/functional/profile_editor_controller_test.rb +++ b/test/functional/profile_editor_controller_test.rb @@ -239,4 +239,10 @@ class ProfileEditorControllerTest < Test::Unit::TestCase assert_template 'organization' end + should 'show edit profile button' do + person = create_user('testuser').person + get :index, :profile => 'testuser' + assert_tag :tag => 'a', :content => 'Edit Profile' + end + end -- libgit2 0.21.2