Commit a269cf07800449bb50fdfbbf34354f5a2b12ad33

Authored by JoenioCosta
1 parent 5b4650d5

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
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
@@ -25,6 +25,7 @@ @@ -25,6 +25,7 @@
25 } 25 }
26 26
27 .profile-info-options { 27 .profile-info-options {
28 - text-align: center; 28 + padding-top: 20px;
  29 + text-align: right;
  30 + padding-right: 5px;
29 } 31 }
30 -  
public/designs/themes/zen3/stylesheets/blocks/profile-info-block.css
@@ -25,6 +25,7 @@ @@ -25,6 +25,7 @@
25 } 25 }
26 26
27 .profile-info-options { 27 .profile-info-options {
28 - text-align: center; 28 + padding-top: 20px;
  29 + text-align: right;
  30 + padding-right: 5px;
29 } 31 }
30 -  
public/stylesheets/blocks.css
@@ -59,6 +59,6 @@ @@ -59,6 +59,6 @@
59 .block-footer-content { 59 .block-footer-content {
60 clear: both; 60 clear: both;
61 margin-top: 1em; 61 margin-top: 1em;
62 - text-align: right; 62 + text-align: center;
63 } 63 }
64 64
test/functional/profile_editor_controller_test.rb
@@ -408,4 +408,10 @@ class ProfileEditorControllerTest &lt; Test::Unit::TestCase @@ -408,4 +408,10 @@ class ProfileEditorControllerTest &lt; 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