From b4a645f1a00f2eaaa389a7bae43b515c82aaa145 Mon Sep 17 00:00:00 2001 From: Vencislav Atanasov Date: Sat, 28 Oct 2023 16:29:57 +0300 Subject: [PATCH] Delete the door management page --- app/controllers/doors_controller.rb | 4 ---- app/views/doors/index.html.slim | 5 ----- app/views/layouts/_navigation.html.slim | 3 --- config/routes.rb | 2 -- 4 files changed, 14 deletions(-) delete mode 100644 app/controllers/doors_controller.rb delete mode 100644 app/views/doors/index.html.slim diff --git a/app/controllers/doors_controller.rb b/app/controllers/doors_controller.rb deleted file mode 100644 index 5d902b3..0000000 --- a/app/controllers/doors_controller.rb +++ /dev/null @@ -1,4 +0,0 @@ -class DoorsController < ApplicationController - def index - end -end diff --git a/app/views/doors/index.html.slim b/app/views/doors/index.html.slim deleted file mode 100644 index 73344b9..0000000 --- a/app/views/doors/index.html.slim +++ /dev/null @@ -1,5 +0,0 @@ -- content_for(:title) { t 'views.doors.management' } -section.container - .row - .col-xs-12 - = render partial: 'layouts/deprecated' diff --git a/app/views/layouts/_navigation.html.slim b/app/views/layouts/_navigation.html.slim index 3ab3115..0af4ceb 100644 --- a/app/views/layouts/_navigation.html.slim +++ b/app/views/layouts/_navigation.html.slim @@ -9,9 +9,6 @@ nav class="navbar navbar-static-top #{content_for?(:nav_color) ? yield(:nav_colo = image_tag 'logo.svg', class: 'navbar-brand', alt: 'Fauna' .navbar-collapse.collapse.navbar-inverse-collapse ul.nav.navbar-nav - li class="#{'active' if current_page?(doors_path)}" - = link_to doors_path do - = icon 'lock', t('views.navigation.door_access') - if user_signed_in? and UserPolicy.new(current_user, nil).index? li class="#{'active' if current_page?(fauna_users_path)}" = link_to fauna_users_path do diff --git a/config/routes.rb b/config/routes.rb index f633af7..f43bed4 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -23,8 +23,6 @@ end end - resources :doors, only: :index - namespace :api, defaults: {format: "json"} do resources :users, only: [] do collection do