Commit fbb0ccc4a9437c5d891e7797dba62e6db9b0461d

Authored by AurelioAHeckert
1 parent e9b2d20c

ActionItem218: show buttons only to logged users

git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1555 3f533792-8f58-4932-b0fe-aaf55b0a4547
app/views/profile/communities.rhtml
@@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
13 <%= button :back, _('Go back'), { :controller => 'profile' }, 13 <%= button :back, _('Go back'), { :controller => 'profile' },
14 :help => _('Back to the page where you come from.') %> 14 :help => _('Back to the page where you come from.') %>
15 <%= button :add, _('Create a new community'), 15 <%= button :add, _('Create a new community'),
16 - :controller => 'memberships', :action => 'new_community' %> 16 + :controller => 'memberships', :action => 'new_community' if logged_in? %>
17 <% end %> 17 <% end %>
18 18
19 </div><!-- fim class="common-profile-list-block" --> 19 </div><!-- fim class="common-profile-list-block" -->
app/views/profile/enterprises.rhtml
@@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
13 <%= button :back, _('Go back'), { :controller => 'profile' }, 13 <%= button :back, _('Go back'), { :controller => 'profile' },
14 :help => _('Back to the page where you come from.') %> 14 :help => _('Back to the page where you come from.') %>
15 <%= button :add, _('Register a new Enterprise'), 15 <%= button :add, _('Register a new Enterprise'),
16 - :controller => 'enterprise_registration' %> 16 + :controller => 'enterprise_registration' if logged_in? %>
17 <% end %> 17 <% end %>
18 18
19 </div><!-- fim class="common-profile-list-block" --> 19 </div><!-- fim class="common-profile-list-block" -->