diff --git a/app/views/application/_navbar.html.haml b/app/views/application/_navbar.html.haml index 9c5320be..202f8ffd 100644 --- a/app/views/application/_navbar.html.haml +++ b/app/views/application/_navbar.html.haml @@ -24,7 +24,7 @@ = link_to('Infractions', :infractions, class: 'dropdown-item') = link_to('Staff', :staff, class: 'dropdown-item') = link_to('Bans', :bans, class: 'dropdown-item') - = link_to('Anti-Cheat and You', :bans, class: 'dropdown-item') + = link_to('Anti-Cheat and You', :anticheat_and_you, class: 'dropdown-item') %li.nav-item.dropdown %a.nav-link.dropdown-toggle{ role: :button, data: { toggle: :dropdown } } diff --git a/app/views/pages/anticheat.html.haml b/app/views/pages/anticheat_and_you.html.haml similarity index 62% rename from app/views/pages/anticheat.html.haml rename to app/views/pages/anticheat_and_you.html.haml index dc141bad..929a1289 100644 --- a/app/views/pages/anticheat.html.haml +++ b/app/views/pages/anticheat_and_you.html.haml @@ -1,5 +1,5 @@ - content_for(:title) { 'Anti-Cheat and You' } -# rubocop:disable Rails/OutputSafety -= raw File.read(Rails.root.join('public', 'anticheat.html.txt')) += raw File.read(Rails.root.join('public', 'anticheat_and_you.html.txt')) -# rubocop:enable Rails/OutputSafety diff --git a/config/routes.rb b/config/routes.rb index 7289744b..2fea2ec9 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -21,6 +21,7 @@ get 'rules', to: 'pages#rules' get 'staff', to: 'pages#staff' get 'bans', to: 'pages#bans' + get 'anticheat_and_you', to: 'pages#anticheat_and_you' get 'server_configs', to: 'pages#server_configs' get 'book_server', to: 'pages#book_server' get 'transfers', to: 'pages#transfers' diff --git a/public/anticheat.html.txt b/public/anticheat_and_you.html.txt similarity index 66% rename from public/anticheat.html.txt rename to public/anticheat_and_you.html.txt index 6b1b119b..fa4c704c 100644 --- a/public/anticheat.html.txt +++ b/public/anticheat_and_you.html.txt @@ -1,5 +1,5 @@
- - + +