Commit 63d37eb00e7439507ced22fc7224950f7d105f6f

Authored by Antonio Terceiro
2 parents 074f8e5f bad1cc53

Merge commit 'bad1cc537d710e03288c446a54c06e55df9994c5' into v0.11.x

app/views/memberships/index.rhtml
... ... @@ -2,6 +2,12 @@
2 2  
3 3 <h1><%= _('Manage my groups') %></h1>
4 4  
  5 +<% button_bar do %>
  6 + <%= button(:add, _('Create a new community'), :controller => 'memberships', :action => 'new_community') %>
  7 + <%= button(:add, __('Register a new Enterprise'), :controller => 'enterprise_registration') if environment.regions.any?{|i| i.has_validator?} %>
  8 + <%= button :back, _('Go back'), :controller => 'profile_editor' %>
  9 +<% end %>
  10 +
5 11 <ul>
6 12 <% for membership in @memberships %>
7 13 <li>
... ... @@ -25,10 +31,4 @@
25 31 <% end %>
26 32 </ul>
27 33  
28   -<% button_bar do %>
29   - <%= button(:add, _('Create a new community'), :controller => 'memberships', :action => 'new_community') %>
30   - <%= button(:add, __('Register a new Enterprise'), :controller => 'enterprise_registration') if environment.regions.any?{|i| i.has_validator?} %>
31   - <%= button :back, _('Go back'), :controller => 'profile_editor' %>
32   -<% end %>
33   -
34 34 </div>
... ...
public/stylesheets/button.css
... ... @@ -69,6 +69,7 @@ input.button.with-text:hover {
69 69  
70 70 .button-bar {
71 71 margin-top: 1em;
  72 + margin-bottom: 1em;
72 73 }
73 74  
74 75 .button-bar .button {
... ...