summaryrefslogtreecommitdiff
path: root/app/views/admin/health_check/show.html.haml
blob: 10a3bed0a4f777108ee31449267975b75ff7dcd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
- @no_container = true
- page_title _('Health Check')
- no_errors = @errors.blank? && @failing_storage_statuses.blank?

%div{ class: container_class }
  %h3.page-title= page_title
  .bs-callout.clearfix
    .pull-left
      %p
    #{ s_('HealthCheck|Access token is') }
    %code#health-check-token= current_application_settings.health_check_access_token
    .prepend-top-10
      = button_to _("Reset health check access token"), reset_health_check_token_admin_application_settings_path,
        method: :put, class: 'btn btn-default',
        data: { confirm: _('Are you sure you want to reset the health check token?') }
  %p.light
    #{ _('Health information can be retrieved from the following endpoints. More information is available') }
    = link_to s_('More information is available|here'), help_page_path('user/admin_area/monitoring/health_check')
    %ul
      %li
        %code= readiness_url(token: current_application_settings.health_check_access_token)
      %li
        %code= liveness_url(token: current_application_settings.health_check_access_token)
      %li
        %code= metrics_url(token: current_application_settings.health_check_access_token)

  %hr
  .panel.panel-default
    .panel-heading
      Current Status:
      - if no_errors
        = icon('circle', class: 'cgreen')
        #{ s_('HealthCheck|Healthy') }
      - else
        = icon('warning', class: 'cred')
        #{ s_('HealthCheck|Unhealthy') }
    .panel-body
      - if no_errors
        #{ s_('HealthCheck|No Health Problems Detected') }
      - else
        = @errors
        = render partial: 'failing_storages', object: @failing_storage_statuses