2014-04-06 14:14:03 +00:00
|
|
|
<nav id="menu">
|
2014-04-18 00:07:07 +00:00
|
|
|
<div class="wrapper">
|
2014-05-10 00:22:11 +00:00
|
|
|
<div id="logo">
|
2014-05-11 10:27:59 +00:00
|
|
|
<%= link_to image_tag("themes/#{active_theme}/logo.png"), root_path %>
|
2014-05-10 00:22:11 +00:00
|
|
|
</div>
|
2014-04-18 00:07:07 +00:00
|
|
|
<ul class="navigation">
|
2015-04-11 16:35:25 +00:00
|
|
|
<li class="dropdown icon">
|
2014-04-19 01:12:02 +00:00
|
|
|
<%= active_link_to root_path, active: ["articles", "news_index"], class: 'news' do %>
|
2014-05-03 01:21:29 +00:00
|
|
|
News
|
2014-04-19 01:12:02 +00:00
|
|
|
<% end %>
|
2015-04-11 16:35:25 +00:00
|
|
|
<ul>
|
|
|
|
<li><%= link_to "Twitter", "https://twitter.com/nslnews" %></li>
|
|
|
|
<li><%= link_to "Steam", "http://steamcommunity.com/groups/nsleagues" %></li>
|
|
|
|
</ul>
|
2014-04-19 01:12:02 +00:00
|
|
|
</li>
|
|
|
|
<li class="dropdown icon">
|
2014-05-11 12:00:09 +00:00
|
|
|
<%= active_link_to({ controller: "contests", action: "current" }, class: 'contests') do %>
|
2014-05-03 01:21:29 +00:00
|
|
|
Contests
|
2014-04-19 01:12:02 +00:00
|
|
|
<% end %>
|
2014-04-18 00:07:07 +00:00
|
|
|
<ul>
|
2017-11-12 17:50:43 +00:00
|
|
|
<li><%= link_to "Rules", "/rules" %></li>
|
2018-04-12 18:32:55 +00:00
|
|
|
<li><%= link_to "Compmod Changes", "/compmod" %></li>
|
2014-04-18 00:07:07 +00:00
|
|
|
<li><%= link_to "Historical", "/contests" %></li>
|
|
|
|
<li><%= link_to "NS1 History", "/contests/historical/NS1" %></li>
|
|
|
|
<li><%= link_to "NS2 History", "/contests/historical/NS2" %></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li class="dropdown">
|
2015-09-18 12:35:17 +00:00
|
|
|
<%= link_to gathers_url, class: 'gathers', target: "_blank" do %>
|
2014-04-19 01:12:02 +00:00
|
|
|
Gathers
|
2015-09-18 12:35:17 +00:00
|
|
|
<span class="count" id="gathercount"></span>
|
2014-04-19 01:12:02 +00:00
|
|
|
<% end %>
|
2014-04-18 00:07:07 +00:00
|
|
|
<ul>
|
|
|
|
<li><%= link_to "Introduction", article_url(464) %></li>
|
|
|
|
<li><%= link_to "Archives", "/gathers/" %></li>
|
2018-04-12 18:32:55 +00:00
|
|
|
<li>
|
|
|
|
<%= link_to "/gathers/latest/ns1", class: 'gathers' do %>
|
|
|
|
NS1 Gather
|
|
|
|
<span class="count"><%= Gather.player_count_for_game('NS1') %>/<%= Gather::FULL %></span>
|
|
|
|
<% end %>
|
|
|
|
</li>
|
2015-09-18 12:35:17 +00:00
|
|
|
<li>
|
2017-01-02 12:47:08 +00:00
|
|
|
<%= link_to "/gathers/latest/ns2", class: 'gathers' do %>
|
2018-04-12 18:32:55 +00:00
|
|
|
NS2 Backup
|
2015-09-18 12:35:17 +00:00
|
|
|
<span class="count"><%= Gather.player_count_for_game('NS2') %>/<%= Gather::FULL %></span>
|
|
|
|
<% end %>
|
|
|
|
</li>
|
2014-04-18 00:07:07 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
2014-04-19 01:12:02 +00:00
|
|
|
<li class="dropdown icon">
|
|
|
|
<%= active_link_to articles_path, class: 'articles' do %>
|
2014-05-03 01:21:29 +00:00
|
|
|
Articles
|
2014-04-19 01:12:02 +00:00
|
|
|
<% end %>
|
2014-04-18 00:07:07 +00:00
|
|
|
<ul>
|
2017-11-12 17:50:43 +00:00
|
|
|
<li><%= link_to "Hall of Fame", '/halloffame' %></li>
|
2014-04-19 01:12:02 +00:00
|
|
|
<li><%= link_to "History", article_url(Article::HISTORY) %></li>
|
|
|
|
<li><%= link_to "Movies", movies_url %></li>
|
2014-04-18 00:07:07 +00:00
|
|
|
<li><%= link_to "Files", directory_url(Directory::ROOT) %></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2014-04-19 01:12:02 +00:00
|
|
|
<li class="dropdown icon">
|
|
|
|
<%= active_link_to forums_path, active: [["forums", "topics"]], class: 'forums' do %>
|
2014-05-03 01:21:29 +00:00
|
|
|
Forums
|
2014-04-19 01:12:02 +00:00
|
|
|
<% end %>
|
2014-04-18 00:07:07 +00:00
|
|
|
<ul>
|
|
|
|
<li><%= link_to "Index", forums_path %></li>
|
2015-04-04 12:49:53 +00:00
|
|
|
<li><%= link_to "Rules", "/topics/640" %></li>
|
2014-04-18 00:07:07 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
2014-04-19 01:12:02 +00:00
|
|
|
<li class="icon">
|
2017-11-12 17:50:43 +00:00
|
|
|
<%= active_link_to('/tutorials', class: 'tutorials') do %>
|
|
|
|
Tutorials
|
2014-04-19 01:12:02 +00:00
|
|
|
<% end %>
|
|
|
|
</li>
|
|
|
|
<li class="dropdown icon">
|
2017-11-12 17:50:43 +00:00
|
|
|
<a href="#" class="league">League</a>
|
2014-04-19 01:12:02 +00:00
|
|
|
<ul>
|
2017-11-12 17:50:43 +00:00
|
|
|
<li><%= link_to "Users", users_path %></li>
|
|
|
|
<li><%= link_to "Teams", teams_path %></li>
|
|
|
|
<li><%= link_to "Staff", about_staff_path %></li>
|
2014-04-19 01:12:02 +00:00
|
|
|
<li><%= link_to "Bans", bans_url %></li>
|
|
|
|
<li><%= link_to "Contact", new_issue_path %></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2014-04-18 00:07:07 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
2014-04-06 14:14:03 +00:00
|
|
|
</nav>
|
2015-09-18 12:35:17 +00:00
|
|
|
<script>
|
2017-02-12 23:00:06 +00:00
|
|
|
$((function gather () {
|
2016-12-21 17:30:12 +00:00
|
|
|
$.ajax({
|
|
|
|
datatype: "json",
|
|
|
|
url: "<%= gathers_url %>/gathers/current",
|
|
|
|
success: function (data) {
|
|
|
|
$("#gathercount").html(data.gatherers.length + "/12");
|
2017-02-12 23:00:06 +00:00
|
|
|
},
|
|
|
|
complete: function() {
|
|
|
|
setTimeout(gather, 10000);
|
2016-12-21 17:30:12 +00:00
|
|
|
}
|
|
|
|
});
|
2017-02-12 23:00:06 +00:00
|
|
|
})());
|
2016-12-21 17:30:12 +00:00
|
|
|
</script>
|