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 @@
- <%= active_link_to Gather.last, class: 'gathers' do %>
+ <%= link_to gathers_url, class: 'gathers', target: "_blank" do %>
Gathers
- <%= Gather.player_count_for_game('NS2') %>/<%= Gather::FULL %>
+
<% end %>
-
- <%= link_to "Introduction", article_url(464) %>
- <%= link_to "Archives", "/gathers/" %>
+ -
+ <%= active_link_to Gather.last, class: 'gathers' do %>
+ Fallback
+ <%= Gather.player_count_for_game('NS2') %>/<%= Gather::FULL %>
+ <% end %>
+
@@ -73,3 +78,14 @@
+
\ No newline at end of file
diff --git a/app/views/gathers/show.html.erb b/app/views/gathers/show.html.erb
index 930cf74..4403bc6 100644
--- a/app/views/gathers/show.html.erb
+++ b/app/views/gathers/show.html.erb
@@ -143,6 +143,10 @@
<% end %>
+
+ Gathers have moved to <%= link_to "gathers.ensl.org", gathers_url, target: "_blank" %>. This app is just a fallback in case something goes wrong
+
+
<% if @gather and @gather.status != Gather::STATE_FINISHED %>