Commit 6070f49ce2c773e7f2fa422c2fa9b039f1635b75
1 parent
ad8ae7d6
Exists in
master
and in
29 other branches
ActionItem355: add Edit Profile
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1811 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
2 changed files
with
8 additions
and
0 deletions
Show diff stats
app/views/profile_editor/index.rhtml
@@ -10,6 +10,8 @@ | @@ -10,6 +10,8 @@ | ||
10 | 10 | ||
11 | <%= file_manager_button(_('Change your picture'), profile_icon(@profile, :portrait), :controller => 'profile_editor', :action => 'change_image') %> | 11 | <%= file_manager_button(_('Change your picture'), profile_icon(@profile, :portrait), :controller => 'profile_editor', :action => 'change_image') %> |
12 | 12 | ||
13 | + <%= file_manager_button(_('Edit Profile'), 'icons-app/edit-profile.png', :controller => 'profile_editor', :action => 'edit') %> | ||
14 | + | ||
13 | <%= file_manager_button(_('Pending tasks'), 'icons-app/todo.png', :controller => 'tasks', :action => 'index') %> | 15 | <%= file_manager_button(_('Pending tasks'), 'icons-app/todo.png', :controller => 'tasks', :action => 'index') %> |
14 | 16 | ||
15 | <%= file_manager_button(_('Edit Visual Design'), 'icons-app/design-editor.png', :controller => 'profile_design', :action => 'index') %> | 17 | <%= file_manager_button(_('Edit Visual Design'), 'icons-app/design-editor.png', :controller => 'profile_design', :action => 'index') %> |
test/functional/profile_editor_controller_test.rb
@@ -239,4 +239,10 @@ class ProfileEditorControllerTest < Test::Unit::TestCase | @@ -239,4 +239,10 @@ class ProfileEditorControllerTest < Test::Unit::TestCase | ||
239 | assert_template 'organization' | 239 | assert_template 'organization' |
240 | end | 240 | end |
241 | 241 | ||
242 | + should 'show edit profile button' do | ||
243 | + person = create_user('testuser').person | ||
244 | + get :index, :profile => 'testuser' | ||
245 | + assert_tag :tag => 'a', :content => 'Edit Profile' | ||
246 | + end | ||
247 | + | ||
242 | end | 248 | end |