diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2011-07-06 10:35:56 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2011-07-06 10:35:56 +0100 |
commit | fb183ab07052293acabde9fa249f5d1952d56465 (patch) | |
tree | 41667f77795a108b77be73e9de9824d9b4fab8da /app/helpers/link_to_helper.rb | |
parent | 4d36238dbc2a239b48193b9089c3321a3103346f (diff) | |
parent | e7cd3adc2775b1450251f89d70680b3be8f291a3 (diff) |
initial merge of Kosovan branch; still need to get tests passing, factor out Kosovan-specific code
Diffstat (limited to 'app/helpers/link_to_helper.rb')
-rwxr-xr-x[-rw-r--r--] | app/helpers/link_to_helper.rb | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/app/helpers/link_to_helper.rb b/app/helpers/link_to_helper.rb index 85913b12e..fa8bb0de8 100644..100755 --- a/app/helpers/link_to_helper.rb +++ b/app/helpers/link_to_helper.rb @@ -162,7 +162,7 @@ module LinkToHelper # Admin pages def admin_url(relative_path) - admin_url_prefix = MySociety::Config.get("ADMIN_BASE_URL", "/admin/") + admin_url_prefix = admin_general_index_path+"/" return admin_url_prefix + relative_path end @@ -180,7 +180,7 @@ module LinkToHelper def main_url(relative_path) - url_prefix = "http://" + MySociety::Config.get("DOMAIN", '127.0.0.1:3000') + url_prefix = "http://" + MySociety::Config.get("DOMAIN", 'informatazyrtare.org') return url_prefix + relative_path end @@ -203,6 +203,12 @@ module LinkToHelper params['locale'] = locale return url_for(params) end - + + def locale_name(locale) + return "English" if locale == "en" + return "Srpski" if locale == "sr" + return "Shqip" if locale == "sq" + return locale + end end |