debian-mirror-gitlab/app/views/admin/system_info/show.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
1.8 KiB
Text
Raw Normal View History

2019-12-21 20:55:43 +05:30
- page_title _('System Info')
2016-08-24 12:49:21 +05:30
2020-07-28 23:09:34 +05:30
.gl-mt-3
2019-12-04 20:38:33 +05:30
.row
2019-12-21 20:55:43 +05:30
.col-sm
2021-03-08 18:12:59 +05:30
.bg-light.info-well.p-3
%h4.page-title.d-flex
.gl-display-flex.gl-align-items-center.gl-justify-content-center
= sprite_icon('pod', size: 18, css_class: 'pod-icon gl-mr-3')
= _('CPU')
2019-12-04 20:38:33 +05:30
.data
- if @cpus
2019-12-21 20:55:43 +05:30
%h2= _('%{cores} cores') % { cores: @cpus.length }
2019-12-04 20:38:33 +05:30
- else
2021-01-29 00:20:46 +05:30
= sprite_icon('warning-solid', css_class: 'text-warning')
2019-12-21 20:55:43 +05:30
= _('Unable to collect CPU info')
2021-03-08 18:12:59 +05:30
.bg-light.info-well.p-3.gl-mt-3
%h4.page-title.d-flex
.gl-display-flex.gl-align-items-center.gl-justify-content-center
= sprite_icon('status-health', size: 18, css_class: 'pod-icon gl-mr-3')
= _('Memory Usage')
2019-12-04 20:38:33 +05:30
.data
- if @memory
2019-12-21 20:55:43 +05:30
%h2 #{number_to_human_size(@memory.active_bytes)} / #{number_to_human_size(@memory.total_bytes)}
2019-12-04 20:38:33 +05:30
- else
2021-01-29 00:20:46 +05:30
= sprite_icon('warning-solid', css_class: 'text-warning')
2019-12-21 20:55:43 +05:30
= _('Unable to collect memory info')
2021-03-08 18:12:59 +05:30
.bg-light.info-well.p-3.gl-mt-3
%h4.page-title.d-flex
.gl-display-flex.gl-align-items-center.gl-justify-content-center
= sprite_icon('clock', size: 18, css_class: 'pod-icon gl-mr-3')
= _('Uptime')
2019-12-04 20:38:33 +05:30
.data
2019-12-21 20:55:43 +05:30
%h2= distance_of_time_in_words_to_now(Rails.application.config.booted_at)
.col-sm
2021-03-08 18:12:59 +05:30
.bg-light.info-well.p-3
%h4.page-title.d-flex
.gl-display-flex.gl-align-items-center.gl-justify-content-center
= sprite_icon('disk', size: 18, css_class: 'pod-icon gl-mr-3')
= _('Disk Usage')
2019-12-04 20:38:33 +05:30
.data
2019-12-21 20:55:43 +05:30
%ul
- @disks.each do |disk|
%li
%h2 #{number_to_human_size(disk[:bytes_used])} / #{number_to_human_size(disk[:bytes_total])}
%p= disk[:disk_name]
%p= disk[:mount_path]