35 lines
1.1 KiB
Text
35 lines
1.1 KiB
Text
- page_title _('System Info')
|
|
|
|
.prepend-top-default
|
|
.row
|
|
.col-sm
|
|
.bg-light.light-well
|
|
%h4= _('CPU')
|
|
.data
|
|
- if @cpus
|
|
%h2= _('%{cores} cores') % { cores: @cpus.length }
|
|
- else
|
|
= icon('warning', class: 'text-warning')
|
|
= _('Unable to collect CPU info')
|
|
.bg-light.light-well.prepend-top-default
|
|
%h4= _('Memory Usage')
|
|
.data
|
|
- if @memory
|
|
%h2 #{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')
|
|
.bg-light.light-well.prepend-top-default
|
|
%h4= _('Uptime')
|
|
.data
|
|
%h2= distance_of_time_in_words_to_now(Rails.application.config.booted_at)
|
|
.col-sm
|
|
.bg-light.light-well
|
|
%h4= _('Disk Usage')
|
|
.data
|
|
%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]
|