summaryrefslogtreecommitdiff
path: root/app/views/admin/system_info/show.html.haml
blob: 6956e5ab7958a003ae5eead0e8789b5a4daf0e20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
- @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
          %h1= "#{@cpus} cores"
    .col-sm-4
      .light-well
        %h4 Memory
        .data
          %h1= "#{number_to_human_size(@mem_used)} / #{number_to_human_size(@mem_total)}"
    .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]}"