Commit 35439859 authored by Yogi's avatar Yogi Committed by Martin Wortschack

Add Icons to headings in system info on admin panel

parent 1622ac99
...@@ -3,29 +3,41 @@ ...@@ -3,29 +3,41 @@
.gl-mt-3 .gl-mt-3
.row .row
.col-sm .col-sm
.bg-light.light-well .bg-light.info-well.p-3
%h4= _('CPU') %h4.page-title.d-flex
.gl-display-flex.gl-align-items-center.gl-justify-content-center
= sprite_icon('pod', size: 18, css_class: 'pod-icon gl-mr-3')
= _('CPU')
.data .data
- if @cpus - if @cpus
%h2= _('%{cores} cores') % { cores: @cpus.length } %h2= _('%{cores} cores') % { cores: @cpus.length }
- else - else
= sprite_icon('warning-solid', css_class: 'text-warning') = sprite_icon('warning-solid', css_class: 'text-warning')
= _('Unable to collect CPU info') = _('Unable to collect CPU info')
.bg-light.light-well.gl-mt-3 .bg-light.info-well.p-3.gl-mt-3
%h4= _('Memory Usage') %h4.page-title.d-flex
.gl-display-flex.gl-align-items-center.gl-justify-content-center
= sprite_icon('status-health', size: 18, css_class: 'pod-icon gl-mr-3')
= _('Memory Usage')
.data .data
- if @memory - if @memory
%h2 #{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 - else
= sprite_icon('warning-solid', css_class: 'text-warning') = sprite_icon('warning-solid', css_class: 'text-warning')
= _('Unable to collect memory info') = _('Unable to collect memory info')
.bg-light.light-well.gl-mt-3 .bg-light.info-well.p-3.gl-mt-3
%h4= _('Uptime') %h4.page-title.d-flex
.gl-display-flex.gl-align-items-center.gl-justify-content-center
= sprite_icon('clock', size: 18, css_class: 'pod-icon gl-mr-3')
= _('Uptime')
.data .data
%h2= distance_of_time_in_words_to_now(Rails.application.config.booted_at) %h2= distance_of_time_in_words_to_now(Rails.application.config.booted_at)
.col-sm .col-sm
.bg-light.light-well .bg-light.info-well.p-3
%h4= _('Disk Usage') %h4.page-title.d-flex
.gl-display-flex.gl-align-items-center.gl-justify-content-center
= sprite_icon('disk', size: 18, css_class: 'pod-icon gl-mr-3')
= _('Disk Usage')
.data .data
%ul %ul
- @disks.each do |disk| - @disks.each do |disk|
......
---
title: Add Icons to headings in system info on admin panel
merge_request: 46618
author: Yogi (@yo)
type: other
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