From 86260b196ed6cb21759ba5eb9ad2fcc33d1b444b Mon Sep 17 00:00:00 2001
From: AntonioTerceiro
Date: Sun, 2 Dec 2007 03:38:37 +0000
Subject: [PATCH] ActionItem93: removing unused stuff
---
app/helpers/application_helper.rb | 17 -----------------
app/views/account/index.rhtml | 5 -----
2 files changed, 0 insertions(+), 22 deletions(-)
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index c1473a4..248a0a4 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -109,17 +109,6 @@ module ApplicationHelper
link_to text, homepage_path(:profile => doc.profile.identifier , :page => path)
end
- # TODO: add the actual links
- # TODO: test this helper
- def user_links
- links = [
- ( link_to_myprofile( _('My profile') )),
- ( link_to_myprofile _('My Enterprises'), {:controller => 'membership_editor'} ),
- ( link_to(_('Admin'), { :controller => 'admin_panel' }) if current_user.person.is_admin?),
- ].join("\n")
- content_tag('span', links, :id => 'user_links')
- end
-
def shortcut_header_links
if logged_in?
[
@@ -154,12 +143,6 @@ module ApplicationHelper
[(link_to _('Manage validators'), :controller => 'region_validators'), 'manage_environment_validators', environment],
]
end
-
- def membership_links
- links = [
- [(link_to _('New enterprise'), :controller => 'membership_editor', :action => 'new_enterprise'),'create_enterprise_for_profile', profile],
- ]
- end
def person_links
links = [
diff --git a/app/views/account/index.rhtml b/app/views/account/index.rhtml
index 14bf650..a019a01 100644
--- a/app/views/account/index.rhtml
+++ b/app/views/account/index.rhtml
@@ -21,11 +21,6 @@
-<%= link_to_myprofile(_('Manage memberships.'), :controller => 'membership_editor') %>
-<%= _('Manage your affiliation with other profiles.') %>
-
-
-
<%= link_to _('Logout.'), :action => 'logout' %>
<%= _('It is always a good idea to make a logout when you finish using the environment.')%>
--
libgit2 0.21.2