diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-02-15 13:57:28 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-02-15 14:47:02 +1100 |
commit | 902631ec4f5e1a16b8f08a2ed0ccc86ad2b72c6c (patch) | |
tree | 87462de4229fa19519260ca76212affbd884e82a /app/helpers | |
parent | 4c9f7f7f12a47b516137bf000c3f36120033a077 (diff) |
Stop using admin_url to generate absolute url for the admin interface
Diffstat (limited to 'app/helpers')
-rwxr-xr-x | app/helpers/link_to_helper.rb | 12 |
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') |