aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/link_to_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/link_to_helper.rb')
-rw-r--r--app/helpers/link_to_helper.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/helpers/link_to_helper.rb b/app/helpers/link_to_helper.rb
index 24ee8e578..8eeed45b5 100644
--- a/app/helpers/link_to_helper.rb
+++ b/app/helpers/link_to_helper.rb
@@ -5,7 +5,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: link_to_helper.rb,v 1.2 2007-11-06 16:05:29 francis Exp $
+# $Id: link_to_helper.rb,v 1.3 2007-12-14 13:24:04 francis Exp $
module LinkToHelper
@@ -41,6 +41,11 @@ module LinkToHelper
text.gsub!(/[^a-z0-9_-]/, "")
text
end
+
+ def admin_url(relative_path)
+ admin_url_prefix = MySociety::Config.get("ADMIN_BASE_URL", "/admin/")
+ return admin_url_prefix + relative_path
+ end
end