2016-08-24 12:49:21 +05:30
|
|
|
- @no_container = true
|
|
|
|
- page_title "System Info"
|
|
|
|
= render 'admin/background_jobs/head'
|
|
|
|
|
|
|
|
%div{ class: container_class }
|
|
|
|
.prepend-top-default
|
|
|
|
.row
|
|
|
|
.col-sm-4
|
|
|
|
.light-well
|
|
|
|
%h4 CPU
|
|
|
|
.data
|
2016-09-13 17:45:13 +05:30
|
|
|
- if @cpus
|
|
|
|
%h1= "#{@cpus.length} cores"
|
|
|
|
- else
|
|
|
|
= icon('warning', class: 'text-warning')
|
|
|
|
Unable to collect CPU info
|
2016-08-24 12:49:21 +05:30
|
|
|
.col-sm-4
|
|
|
|
.light-well
|
|
|
|
%h4 Memory
|
|
|
|
.data
|
2016-09-13 17:45:13 +05:30
|
|
|
- if @memory
|
|
|
|
%h1= "#{number_to_human_size(@memory.active_bytes)} / #{number_to_human_size(@memory.total_bytes)}"
|
|
|
|
- else
|
|
|
|
= icon('warning', class: 'text-warning')
|
|
|
|
Unable to collect memory info
|
2016-08-24 12:49:21 +05:30
|
|
|
.col-sm-4
|
|
|
|
.light-well
|
|
|
|
%h4 Disks
|
|
|
|
.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]}"
|