Welcome to mirror list, hosted at ThFree Co, Russian Federation.

show.html.haml « system_info « admin « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 948a11646f7ae639122f7a72f0d8fd9cb97ed5a0 (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
26
27
28
29
30
31
32
33
34
35
- page_title "System Info"

.prepend-top-default
.row
  .col-sm-4
    .card.bg-light.light-well
      %h4 CPU
      .data
        - if @cpus
          %h1 #{@cpus.length} cores
        - else
          = icon('warning', class: 'text-warning')
          Unable to collect CPU info
  .col-sm-4
    .card.bg-light.light-well
      %h4 Memory Usage
      .data
        - 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
  .col-sm-4
    .card.bg-light.light-well
      %h4 Disk Usage
      .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]
  .col-sm-4
    .card.bg-light.light-well
      %h4 Uptime
      .data
        %h1= distance_of_time_in_words_to_now(Rails.application.config.booted_at)