aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/link_to_helper.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/helpers/link_to_helper.rb b/app/helpers/link_to_helper.rb
index b26c7d020..381d45122 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.8 2008-01-04 10:56:22 francis Exp $
+# $Id: link_to_helper.rb,v 1.9 2008-01-21 18:53:41 francis Exp $
module LinkToHelper
@@ -72,6 +72,12 @@ module LinkToHelper
return admin_url_prefix + relative_path
end
+ # Where stylesheets used by admin page sit under
+ def admin_public_url(relative_path)
+ admin_url_prefix = MySociety::Config.get("ADMIN_PUBLIC_URL", "/")
+ return admin_url_prefix + relative_path
+ end
+
def main_url(relative_path)
url_prefix = "http://" + MySociety::Config.get("DOMAIN", '127.0.0.1:3000')
return url_prefix + relative_path