Commit a269cf07800449bb50fdfbbf34354f5a2b12ad33
1 parent
5b4650d5
Exists in
master
and in
29 other branches
ActionItem468: moving up EDIT button, add space between profile picture
and actions buttons git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2064 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
5 changed files
with
18 additions
and
10 deletions
Show diff stats
app/views/profile_editor/index.rhtml
@@ -40,6 +40,11 @@ | @@ -40,6 +40,11 @@ | ||
40 | 40 | ||
41 | <% if @profile.person? %> | 41 | <% if @profile.person? %> |
42 | <h2><%= _('Manage my groups') %></h2> | 42 | <h2><%= _('Manage my groups') %></h2> |
43 | + | ||
44 | + <% button_bar do %> | ||
45 | + <%= button(:add, _('Create a new community'), :controller => 'memberships', :action => 'new_community') %> | ||
46 | + <%= button(:add, _('Register a new Enterprise'), :controller => 'enterprise_registration') %> | ||
47 | + <% end %> | ||
43 | 48 | ||
44 | <% file_manager do %> | 49 | <% file_manager do %> |
45 | 50 | ||
@@ -49,11 +54,6 @@ | @@ -49,11 +54,6 @@ | ||
49 | 54 | ||
50 | <% end %> | 55 | <% end %> |
51 | 56 | ||
52 | - <% button_bar do %> | ||
53 | - <%= button(:add, _('Register a new Enterprise'), :controller => 'enterprise_registration') %> | ||
54 | - <%= button(:edit, _('Manage my organizations'), :controller => 'memberships') %> | ||
55 | - <% end %> | ||
56 | - | ||
57 | <% end %> | 57 | <% end %> |
58 | 58 | ||
59 | </div><!-- end id="profile-editor-index" --> | 59 | </div><!-- end id="profile-editor-index" --> |
public/designs/themes/ecosol/stylesheets/blocks/profile-info-block.css
public/designs/themes/zen3/stylesheets/blocks/profile-info-block.css
public/stylesheets/blocks.css
test/functional/profile_editor_controller_test.rb
@@ -408,4 +408,10 @@ class ProfileEditorControllerTest < Test::Unit::TestCase | @@ -408,4 +408,10 @@ class ProfileEditorControllerTest < Test::Unit::TestCase | ||
408 | assert assigns(:to_disable).enabled? | 408 | assert assigns(:to_disable).enabled? |
409 | end | 409 | end |
410 | 410 | ||
411 | + should 'link to create community' do | ||
412 | + profile = Person['ze'] | ||
413 | + get :index, :profile => profile.identifier | ||
414 | + assert_tag :tag => 'a', :attributes => { :href => "/myprofile/#{profile.identifier}/memberships/new_community" } | ||
415 | + end | ||
416 | + | ||
411 | end | 417 | end |