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: d3d2ebb90dafc3df2cdf1f16bea962c0a939039e (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
36
37
38
39
40
41
42
43
44
45
46
47
48
- page_title _('System Info')

.gl-mt-3
.row
  .col-sm
    = render Pajamas::CardComponent.new(card_options: { class: 'gl-mb-3' }) do |c|
      - c.with_body do
        %h4
          = sprite_icon('pod', size: 18, css_class: 'gl-text-gray-700')
          = _('CPU')
        .data
          - if @cpus
            %h2= _('%{cores} cores') % { cores: @cpus.length }
          - else
            = sprite_icon('warning-solid', css_class: 'text-warning')
            = _('Unable to collect CPU info')

    = render Pajamas::CardComponent.new(card_options: { class: 'gl-mb-3' }) do |c|
      - c.with_body do
        %h4
          = sprite_icon('status-health', size: 18, css_class: 'gl-text-gray-700')
          = _('Memory Usage')
        .data
          - if @memory
            %h2 #{number_to_human_size(@memory.active_bytes)} / #{number_to_human_size(@memory.total_bytes)}
          - else
            = sprite_icon('warning-solid', css_class: 'text-warning')
            = _('Unable to collect memory info')

    = render Pajamas::CardComponent.new(card_options: { class: 'gl-mb-3' }) do |c|
      - c.with_body do
        %h4
          = sprite_icon('clock', size: 18, css_class: 'gl-text-gray-700')
          = _('System started')
        .data
          %h2= time_ago_with_tooltip(Rails.application.config.booted_at)
  .col-sm
    = render Pajamas::CardComponent.new(card_options: { class: 'gl-mb-3' }) do |c|
      - c.with_body do
        %h4
          = sprite_icon('disk', size: 18, css_class: 'gl-text-gray-700')
          = _('Disk Usage')
        .data
          - @disks.each do |disk|
            %h2 #{number_to_human_size(disk[:bytes_used])} / #{number_to_human_size(disk[:bytes_total])}
            %ul
              %li= disk[:disk_name]
              %li= disk[:mount_path]