Skip to content

Commit

Permalink
Add service status page
Browse files Browse the repository at this point in the history
This page is (probably) temporary
  • Loading branch information
jrmhaig committed Jan 3, 2024
1 parent c3eaa1a commit 4ddeff2
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/controllers/super_admins/service_status_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module SuperAdmins
class ServiceStatusController < ApplicationController
skip_load_and_authorize_resource

def index; end
end
end
2 changes: 2 additions & 0 deletions app/views/layouts/_primary_navigation.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
= govuk_link_to t('.offences'), super_admins_offences_path, class: cp(super_admins_offences_path)
%li
= govuk_link_to t('.stats'), super_admins_stats_path, class: cp(super_admins_stats_path)
%li
= govuk_link_to t('.service_status'), super_admins_service_status_index_path, class: cp(super_admins_service_status_index_path)

- elsif current_user.persona.is_a?(ExternalUser)
%li
Expand Down
12 changes: 12 additions & 0 deletions app/views/super_admins/service_status/index.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
= content_for :page_title, flush: true do
= 'Service Status'

= render partial: 'layouts/header', locals: { page_heading: 'Service Status' }

= govuk_table do
= govuk_table_tbody do
= govuk_table_row do
= govuk_table_th do
= 'Virus scanner available'
= govuk_table_td do
= Ratonvirus.scanner.available? ? 'Yes' : 'No'
1 change: 1 addition & 0 deletions config/locales/en/views/layouts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ en:
sub_navigation: Sub navigation
users: Users
offences: Offences
service_status: Service Status

skip_content: Skip to main content

Expand Down
2 changes: 2 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@
patch 'update_password', on: :member
end
end

resources :service_status, only: :index
end

namespace :provider_management do
Expand Down

0 comments on commit 4ddeff2

Please sign in to comment.