BigW Consortium Gitlab

show.html.haml 978 Bytes
Newer Older
1 2 3 4
- @no_container = true
- page_title "System Info"
= render 'admin/background_jobs/head'

5
%div{ class: container_class }
Josh Frye committed
6
  .prepend-top-default
7 8 9
  .row
    .col-sm-4
      .light-well
10
        %h4 CPU
11
        .data
12 13 14
          - if @cpus
            %h1= "#{@cpus.length} cores"
          - else
Sean McGivern committed
15
            = icon('warning', class: 'text-warning')
16
            Unable to collect CPU info
17 18 19 20
    .col-sm-4
      .light-well
        %h4 Memory
        .data
21 22 23
          - if @memory
            %h1= "#{number_to_human_size(@memory.active_bytes)} / #{number_to_human_size(@memory.total_bytes)}"
          - else
Sean McGivern committed
24
            = icon('warning', class: 'text-warning')
25
            Unable to collect memory info
26 27
    .col-sm-4
      .light-well
28
        %h4 Disks
29
        .data
30 31 32 33
          - @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]}"