2016-06-22 10:43:28 -04:00
|
|
|
- @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
|
2016-06-22 10:43:28 -04:00
|
|
|
.row
|
|
|
|
.col-sm-4
|
2018-05-14 18:21:11 -04:00
|
|
|
.card.bg-light.light-well
|
2016-06-23 10:56:41 -04:00
|
|
|
%h4 CPU
|
2016-06-22 10:43:28 -04:00
|
|
|
.data
|
2016-08-24 13:06:19 -04:00
|
|
|
- if @cpus
|
2017-01-15 11:20:13 -05:00
|
|
|
%h1 #{@cpus.length} cores
|
2016-08-24 13:06:19 -04:00
|
|
|
- else
|
2016-08-25 11:07:20 -04:00
|
|
|
= icon('warning', class: 'text-warning')
|
2016-08-24 13:06:19 -04:00
|
|
|
Unable to collect CPU info
|
2016-06-22 10:43:28 -04:00
|
|
|
.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
|
2016-06-22 10:43:28 -04:00
|
|
|
.data
|
2016-08-24 13:06:19 -04:00
|
|
|
- if @memory
|
2017-01-15 11:20:13 -05:00
|
|
|
%h1 #{number_to_human_size(@memory.active_bytes)} / #{number_to_human_size(@memory.total_bytes)}
|
2016-08-24 13:06:19 -04:00
|
|
|
- else
|
2016-08-25 11:07:20 -04:00
|
|
|
= icon('warning', class: 'text-warning')
|
2016-08-24 13:06:19 -04:00
|
|
|
Unable to collect memory info
|
2016-06-22 10:43:28 -04:00
|
|
|
.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
|
2016-06-22 10:43:28 -04:00
|
|
|
.data
|
2016-06-28 22:30:01 -04:00
|
|
|
- @disks.each do |disk|
|
2017-01-15 11:20:13 -05:00
|
|
|
%h1 #{number_to_human_size(disk[:bytes_used])} / #{number_to_human_size(disk[:bytes_total])}
|
2017-01-13 11:07:21 -05:00
|
|
|
%p= disk[:disk_name]
|
|
|
|
%p= disk[:mount_path]
|
2017-05-23 02:09:52 -04:00
|
|
|
.col-sm-4
|
2018-05-14 18:21:11 -04:00
|
|
|
.card.bg-light.light-well
|
2017-05-23 02:09:52 -04:00
|
|
|
%h4 Uptime
|
|
|
|
.data
|
2017-12-15 07:37:01 -05:00
|
|
|
%h1= distance_of_time_in_words_to_now(Rails.application.config.booted_at)
|