Commit 6c044f12 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Improve admin/system_info page ui

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 504e6929
......@@ -2,34 +2,34 @@
.prepend-top-default
.row
.col-sm-4
.card.bg-light.light-well
.col-sm
.bg-light.light-well
%h4 CPU
.data
- if @cpus
%h1 #{@cpus.length} cores
%h2 #{@cpus.length} cores
- else
= icon('warning', class: 'text-warning')
Unable to collect CPU info
.col-sm-4
.card.bg-light.light-well
.bg-light.light-well.prepend-top-default
%h4 Memory Usage
.data
- if @memory
%h1 #{number_to_human_size(@memory.active_bytes)} / #{number_to_human_size(@memory.total_bytes)}
%h2 #{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
.bg-light.light-well.prepend-top-default
%h4 Uptime
.data
%h2= distance_of_time_in_words_to_now(Rails.application.config.booted_at)
.col-sm
.bg-light.light-well
%h4 Disk Usage
.data
%ul
- @disks.each do |disk|
%h1 #{number_to_human_size(disk[:bytes_used])} / #{number_to_human_size(disk[:bytes_total])}
%li
%h2 #{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)
---
title: Improve admin/system_info page ui
merge_request: 17829
author:
type: changed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment