gitlab-org--gitlab-foss/app/views/admin/system_info/show.html.haml

38 lines
1.1 KiB
Text
Raw Normal View History

- @no_container = true
- page_title "System Info"
2016-06-30 09:01:26 -04:00
%div{ class: container_class }
2016-06-23 08:19:54 -04:00
.prepend-top-default
.row
.col-sm-4
2018-05-14 18:21:11 -04:00
.card.bg-light.light-well
%h4 CPU
.data
- if @cpus
%h1 #{@cpus.length} cores
- else
2016-08-25 11:07:20 -04:00
= icon('warning', class: 'text-warning')
Unable to collect CPU info
.col-sm-4
2018-05-14 18:21:11 -04:00
.card.bg-light.light-well
2017-12-15 07:37:01 -05:00
%h4 Memory Usage
.data
- if @memory
%h1 #{number_to_human_size(@memory.active_bytes)} / #{number_to_human_size(@memory.total_bytes)}
- else
2016-08-25 11:07:20 -04:00
= icon('warning', class: 'text-warning')
Unable to collect memory info
.col-sm-4
2018-05-14 18:21:11 -04:00
.card.bg-light.light-well
2017-12-15 07:37:01 -05:00
%h4 Disk Usage
.data
- @disks.each do |disk|
%h1 #{number_to_human_size(disk[:bytes_used])} / #{number_to_human_size(disk[:bytes_total])}
%p= disk[:disk_name]
%p= disk[:mount_path]
.col-sm-4
2018-05-14 18:21:11 -04:00
.card.bg-light.light-well
%h4 Uptime
.data
2017-12-15 07:37:01 -05:00
%h1= distance_of_time_in_words_to_now(Rails.application.config.booted_at)