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