aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/link_to_helper.rb
diff options
context:
space:
mode:
authorfrancis <francis>2008-01-21 18:53:40 +0000
committerfrancis <francis>2008-01-21 18:53:40 +0000
commitec8f08ba07a909378c8d4bc0cbb67da8cf8b50f3 (patch)
tree7112bdd1cbd07470a9cb20d1d2fe7fb852205220 /app/helpers/link_to_helper.rb
parentc0098a847c662e4c1f622e622d383ad9f7d263a1 (diff)
Option for stylesheets to be served from https also
Diffstat (limited to 'app/helpers/link_to_helper.rb')
-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