mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-01-12 21:00:58 +00:00
Restructuring navigation and replacing some hardcoded article URLs with new dynamic custom URLs
This commit is contained in:
parent
8c0378579b
commit
eb09114776
3 changed files with 17 additions and 13 deletions
|
@ -124,6 +124,14 @@ ul.navigation {
|
||||||
&.users:after {
|
&.users:after {
|
||||||
content: $fa-var-user;
|
content: $fa-var-user;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.league:after {
|
||||||
|
content: $fa-var-gamepad;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.tutorials:after {
|
||||||
|
content: $fa-var-graduation-cap;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
i {
|
i {
|
||||||
|
|
|
@ -187,10 +187,6 @@ module ApplicationHelper
|
||||||
calendar.upcoming_nsltv || []
|
calendar.upcoming_nsltv || []
|
||||||
end
|
end
|
||||||
|
|
||||||
def latest_rules
|
|
||||||
article_path(Article::RULES)
|
|
||||||
end
|
|
||||||
|
|
||||||
def gathers_url
|
def gathers_url
|
||||||
if Rails.env.production?
|
if Rails.env.production?
|
||||||
"https://gathers.ensl.org"
|
"https://gathers.ensl.org"
|
||||||
|
|
|
@ -18,8 +18,8 @@
|
||||||
Contests
|
Contests
|
||||||
<% end %>
|
<% end %>
|
||||||
<ul>
|
<ul>
|
||||||
<li><%= link_to "Rules", latest_rules %></li>
|
<li><%= link_to "Rules", "/rules" %></li>
|
||||||
<li><%= link_to "Comp Mod Changes", article_url(Article::COMPMOD) %></li>
|
<li><%= link_to "Comp Mod Changes", "/compmod" %></li>
|
||||||
<li><%= link_to "Historical", "/contests" %></li>
|
<li><%= link_to "Historical", "/contests" %></li>
|
||||||
<li><%= link_to "NS1 History", "/contests/historical/NS1" %></li>
|
<li><%= link_to "NS1 History", "/contests/historical/NS1" %></li>
|
||||||
<li><%= link_to "NS2 History", "/contests/historical/NS2" %></li>
|
<li><%= link_to "NS2 History", "/contests/historical/NS2" %></li>
|
||||||
|
@ -46,7 +46,7 @@
|
||||||
Articles
|
Articles
|
||||||
<% end %>
|
<% end %>
|
||||||
<ul>
|
<ul>
|
||||||
<li><%= link_to "Hall of Fame", article_url(Article::HOF) %></li>
|
<li><%= link_to "Hall of Fame", '/halloffame' %></li>
|
||||||
<li><%= link_to "History", article_url(Article::HISTORY) %></li>
|
<li><%= link_to "History", article_url(Article::HISTORY) %></li>
|
||||||
<li><%= link_to "Movies", movies_url %></li>
|
<li><%= link_to "Movies", movies_url %></li>
|
||||||
<li><%= link_to "Files", directory_url(Directory::ROOT) %></li>
|
<li><%= link_to "Files", directory_url(Directory::ROOT) %></li>
|
||||||
|
@ -62,16 +62,16 @@
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li class="icon">
|
<li class="icon">
|
||||||
<%= active_link_to({ controller: "teams", action: :index }, class: 'teams') do %>
|
<%= active_link_to('/tutorials', class: 'tutorials') do %>
|
||||||
Teams
|
Tutorials
|
||||||
<% end %>
|
<% end %>
|
||||||
</li>
|
</li>
|
||||||
<li class="dropdown icon">
|
<li class="dropdown icon">
|
||||||
<%= active_link_to({ controller: "users", action: :index }, class: 'users') do %>
|
<a href="#" class="league">League</a>
|
||||||
Users
|
|
||||||
<% end %>
|
|
||||||
<ul>
|
<ul>
|
||||||
<li><%= link_to "Staff", controller: "about", action: "staff" %></li>
|
<li><%= link_to "Users", users_path %></li>
|
||||||
|
<li><%= link_to "Teams", teams_path %></li>
|
||||||
|
<li><%= link_to "Staff", about_staff_path %></li>
|
||||||
<li><%= link_to "Bans", bans_url %></li>
|
<li><%= link_to "Bans", bans_url %></li>
|
||||||
<li><%= link_to "Contact", new_issue_path %></li>
|
<li><%= link_to "Contact", new_issue_path %></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in a new issue