diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 9b9d542..561202d 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -189,4 +189,12 @@ module ApplicationHelper def latest_rules article_path(Article::RULES) end + + def gathers_url + if Rails.env.production? + "http://gathers.ensl.org" + else + "http://gathers.staging.ensl.org" + end + end end diff --git a/app/views/application/_navigation.html.erb b/app/views/application/_navigation.html.erb index ad687f7..ea46bd0 100644 --- a/app/views/application/_navigation.html.erb +++ b/app/views/application/_navigation.html.erb @@ -25,14 +25,19 @@