Commit 86260b196ed6cb21759ba5eb9ad2fcc33d1b444b

Authored by AntonioTerceiro
1 parent 32a85ace

ActionItem93: removing unused stuff



git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1054 3f533792-8f58-4932-b0fe-aaf55b0a4547
app/helpers/application_helper.rb
... ... @@ -109,17 +109,6 @@ module ApplicationHelper
109 109 link_to text, homepage_path(:profile => doc.profile.identifier , :page => path)
110 110 end
111 111  
112   - # TODO: add the actual links
113   - # TODO: test this helper
114   - def user_links
115   - links = [
116   - ( link_to_myprofile( _('My profile') )),
117   - ( link_to_myprofile _('My Enterprises'), {:controller => 'membership_editor'} ),
118   - ( link_to(_('Admin'), { :controller => 'admin_panel' }) if current_user.person.is_admin?),
119   - ].join("\n")
120   - content_tag('span', links, :id => 'user_links')
121   - end
122   -
123 112 def shortcut_header_links
124 113 if logged_in?
125 114 [
... ... @@ -154,12 +143,6 @@ module ApplicationHelper
154 143 [(link_to _('Manage validators'), :controller => 'region_validators'), 'manage_environment_validators', environment],
155 144 ]
156 145 end
157   -
158   - def membership_links
159   - links = [
160   - [(link_to _('New enterprise'), :controller => 'membership_editor', :action => 'new_enterprise'),'create_enterprise_for_profile', profile],
161   - ]
162   - end
163 146  
164 147 def person_links
165 148 links = [
... ...
app/views/account/index.rhtml
... ... @@ -21,11 +21,6 @@
21 21 </p>
22 22  
23 23 <p>
24   -<%= link_to_myprofile(_('Manage memberships.'), :controller => 'membership_editor') %>
25   -<%= _('Manage your affiliation with other profiles.') %>
26   -</p>
27   -
28   -<p>
29 24 <%= link_to _('Logout.'), :action => 'logout' %>
30 25 <%= _('It is always a good idea to make a logout when you finish using the environment.')%>
31 26 </p>
... ...