summaryrefslogtreecommitdiffstats
path: root/client/components/settings/informationBody.jade
blob: 53907513f2ed48614ed1e4826b4051dc944037d0 (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
49
50
51
template(name='information')
  .setting-content
    unless currentUser.isAdmin
      | {{_ 'error-notAuthorized'}}
    else
      .content-title
        span {{_ 'info'}}
      .content-body
        .side-menu
          ul
            li.active
              a.js-setting-menu(data-id="information-display") {{_ 'info'}}
        .main-body
          +statistics

template(name='statistics')
    table
      tbody
        tr
          th {{_ 'Wekan_version'}}
          td {{statistics.version}}
        tr
          th {{_ 'Node_version'}}
          td {{statistics.process.nodeVersion}}
        tr
          th {{_ 'OS_Type'}}
          td {{statistics.os.type}}
        tr
          th {{_ 'OS_Platform'}}
          td {{statistics.os.platform}}
        tr
          th {{_ 'OS_Arch'}}
          td {{statistics.os.arch}}
        tr
          th {{_ 'OS_Release'}}
          td {{statistics.os.release}}
        tr
          th {{_ 'OS_Uptime'}}
          td {{humanReadableTime statistics.os.uptime}}
        tr
          th {{_ 'OS_Loadavg'}}
          td {{numFormat statistics.os.loadavg.[0]}}, {{numFormat statistics.os.loadavg.[1]}}, {{numFormat statistics.os.loadavg.[2]}}
        tr
          th {{_ 'OS_Totalmem'}}
          td {{bytesToSize statistics.os.totalmem}}
        tr
          th {{_ 'OS_Freemem'}}
          td {{bytesToSize statistics.os.freemem}}
        tr
          th {{_ 'OS_Cpus'}}
          td {{statistics.os.cpus.length}}