Skip to content

Commit

Permalink
Delete the door management page
Browse files Browse the repository at this point in the history
  • Loading branch information
user890104 committed Oct 28, 2023
1 parent 6c9aed5 commit b4a645f
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 14 deletions.
4 changes: 0 additions & 4 deletions app/controllers/doors_controller.rb

This file was deleted.

5 changes: 0 additions & 5 deletions app/views/doors/index.html.slim

This file was deleted.

3 changes: 0 additions & 3 deletions app/views/layouts/_navigation.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
end
end

resources :doors, only: :index

namespace :api, defaults: {format: "json"} do
resources :users, only: [] do
collection do
Expand Down

0 comments on commit b4a645f

Please sign in to comment.