aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/link_to_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/link_to_helper.rb')
-rwxr-xr-xapp/helpers/link_to_helper.rb12
1 files changed, 3 insertions, 9 deletions
diff --git a/app/helpers/link_to_helper.rb b/app/helpers/link_to_helper.rb
index 6e0a6f355..bd59f24d0 100755
--- a/app/helpers/link_to_helper.rb
+++ b/app/helpers/link_to_helper.rb
@@ -23,7 +23,7 @@ module LinkToHelper
end
def request_admin_url(info_request)
- return admin_url('request/show/' + info_request.id.to_s)
+ admin_request_show_url(info_request)
end
def request_admin_link(info_request, name="admin", cls=nil)
@@ -103,7 +103,7 @@ module LinkToHelper
end
def public_body_admin_url(public_body)
- return admin_url('body/show/' + public_body.id.to_s)
+ admin_body_show_url(public_body)
end
def public_body_both_links(public_body)
@@ -190,7 +190,7 @@ module LinkToHelper
end
def user_admin_url(user)
- return admin_url('user/show/' + user.id.to_s)
+ admin_user_show_url(user)
end
def user_admin_link(user, name="admin", cls=nil)
@@ -260,12 +260,6 @@ module LinkToHelper
link_to h(query), search_url(query)
end
- # Admin pages
- def admin_url(relative_path)
- admin_url_prefix = Configuration::admin_base_url
- (admin_url_prefix.empty? ? admin_general_index_url + '/' : admin_url_prefix) + relative_path
- end
-
# About page URLs
def about_url
return help_general_url(:action => 'about')