BigW Consortium Gitlab

show.html.haml 959 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
          - if @cpus
13
            %h1 #{@cpus.length} cores
14
          - 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
          - if @memory
22
            %h1 #{number_to_human_size(@memory.active_bytes)} / #{number_to_human_size(@memory.total_bytes)}
23
          - 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
          - @disks.each do |disk|
31
            %h1 #{number_to_human_size(disk[:bytes_used])} / #{number_to_human_size(disk[:bytes_total])}
32 33
            %p= disk[:disk_name]
            %p= disk[:mount_path]