diff --git a/app/views/profile_editor/index.rhtml b/app/views/profile_editor/index.rhtml
index f8d9a8b..61eae03 100644
--- a/app/views/profile_editor/index.rhtml
+++ b/app/views/profile_editor/index.rhtml
@@ -40,6 +40,11 @@
<% if @profile.person? %>
<%= _('Manage my groups') %>
+
+ <% button_bar do %>
+ <%= button(:add, _('Create a new community'), :controller => 'memberships', :action => 'new_community') %>
+ <%= button(:add, _('Register a new Enterprise'), :controller => 'enterprise_registration') %>
+ <% end %>
<% file_manager do %>
@@ -49,11 +54,6 @@
<% end %>
- <% button_bar do %>
- <%= button(:add, _('Register a new Enterprise'), :controller => 'enterprise_registration') %>
- <%= button(:edit, _('Manage my organizations'), :controller => 'memberships') %>
- <% end %>
-
<% end %>
diff --git a/public/designs/themes/ecosol/stylesheets/blocks/profile-info-block.css b/public/designs/themes/ecosol/stylesheets/blocks/profile-info-block.css
index 78c37da..b3f7701 100644
--- a/public/designs/themes/ecosol/stylesheets/blocks/profile-info-block.css
+++ b/public/designs/themes/ecosol/stylesheets/blocks/profile-info-block.css
@@ -25,6 +25,7 @@
}
.profile-info-options {
- text-align: center;
+ padding-top: 20px;
+ text-align: right;
+ padding-right: 5px;
}
-
diff --git a/public/designs/themes/zen3/stylesheets/blocks/profile-info-block.css b/public/designs/themes/zen3/stylesheets/blocks/profile-info-block.css
index 0c34a8d..68b6ed1 100644
--- a/public/designs/themes/zen3/stylesheets/blocks/profile-info-block.css
+++ b/public/designs/themes/zen3/stylesheets/blocks/profile-info-block.css
@@ -25,6 +25,7 @@
}
.profile-info-options {
- text-align: center;
+ padding-top: 20px;
+ text-align: right;
+ padding-right: 5px;
}
-
diff --git a/public/stylesheets/blocks.css b/public/stylesheets/blocks.css
index cea7940..cc4e264 100644
--- a/public/stylesheets/blocks.css
+++ b/public/stylesheets/blocks.css
@@ -59,6 +59,6 @@
.block-footer-content {
clear: both;
margin-top: 1em;
- text-align: right;
+ text-align: center;
}
diff --git a/test/functional/profile_editor_controller_test.rb b/test/functional/profile_editor_controller_test.rb
index 4b4ce27..f914b3c 100644
--- a/test/functional/profile_editor_controller_test.rb
+++ b/test/functional/profile_editor_controller_test.rb
@@ -408,4 +408,10 @@ class ProfileEditorControllerTest < Test::Unit::TestCase
assert assigns(:to_disable).enabled?
end
+ should 'link to create community' do
+ profile = Person['ze']
+ get :index, :profile => profile.identifier
+ assert_tag :tag => 'a', :attributes => { :href => "/myprofile/#{profile.identifier}/memberships/new_community" }
+ end
+
end
--
libgit2 0.21.2