diff options
author | nztqa <nztqa@users.noreply.github.com> | 2017-08-03 09:24:40 +0900 |
---|---|---|
committer | nztqa <nztqa@users.noreply.github.com> | 2017-08-03 09:24:40 +0900 |
commit | e407eb9a8b91d1100315f2fcab2cf8d184957929 (patch) | |
tree | 197510f28ad8ef829abc0f085a07dad2086eb943 /client/components/settings/informationBody.jade | |
parent | 3085230b13e55542a4d95e9357366688b3e2fd1a (diff) | |
download | wekan-e407eb9a8b91d1100315f2fcab2cf8d184957929.tar.gz wekan-e407eb9a8b91d1100315f2fcab2cf8d184957929.tar.bz2 wekan-e407eb9a8b91d1100315f2fcab2cf8d184957929.zip |
Add display wekan version number and runtime environment
Diffstat (limited to 'client/components/settings/informationBody.jade')
-rw-r--r-- | client/components/settings/informationBody.jade | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/client/components/settings/informationBody.jade b/client/components/settings/informationBody.jade new file mode 100644 index 00000000..53907513 --- /dev/null +++ b/client/components/settings/informationBody.jade @@ -0,0 +1,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}} |