mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-25 08:33:22 +03:00
[Web UI] add cpu name in quicklook plugin
This commit is contained in:
parent
15051499c4
commit
6e154824bc
@ -7,6 +7,7 @@ body {
|
|||||||
.table {
|
.table {
|
||||||
display: table;
|
display: table;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
max-width:100%;
|
||||||
}
|
}
|
||||||
.table-row-group {
|
.table-row-group {
|
||||||
display: table-row-group
|
display: table-row-group
|
||||||
@ -51,7 +52,7 @@ body {
|
|||||||
|
|
||||||
/* Theme */
|
/* Theme */
|
||||||
|
|
||||||
.title{
|
.title {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
@ -126,6 +127,12 @@ body {
|
|||||||
#quicklook .progress-bar-critical {
|
#quicklook .progress-bar-critical {
|
||||||
background-color: #A30000;
|
background-color: #A30000;
|
||||||
}
|
}
|
||||||
|
#quicklook .cpu-name {
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
width: 100%;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
#monitor .process-result {
|
#monitor .process-result {
|
||||||
max-width: 300px;
|
max-width: 300px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
<div class="cpu-name">
|
||||||
|
{{ statsQuicklook.cpu_name }}
|
||||||
|
</div>
|
||||||
<div class="table">
|
<div class="table">
|
||||||
<div class="table-row" ng-show="!arguments.percpu">
|
<div class="table-row" ng-show="!arguments.percpu">
|
||||||
<div class="table-cell text-left">CPU</div>
|
<div class="table-cell text-left">CPU</div>
|
||||||
|
@ -4,6 +4,9 @@ glancesApp.service('GlancesPluginQuicklook', function() {
|
|||||||
|
|
||||||
this.mem = null;
|
this.mem = null;
|
||||||
this.cpu = null;
|
this.cpu = null;
|
||||||
|
this.cpu_name = null;
|
||||||
|
this.cpu_hz_current = null;
|
||||||
|
this.cpu_hz = null;
|
||||||
this.swap = null;
|
this.swap = null;
|
||||||
this.percpus = [];
|
this.percpus = [];
|
||||||
|
|
||||||
@ -13,6 +16,9 @@ glancesApp.service('GlancesPluginQuicklook', function() {
|
|||||||
|
|
||||||
this.mem = data.mem;
|
this.mem = data.mem;
|
||||||
this.cpu = data.cpu;
|
this.cpu = data.cpu;
|
||||||
|
this.cpu_name = data.cpu_name;
|
||||||
|
this.cpu_hz_current = data.cpu_hz_current;
|
||||||
|
this.cpu_hz = data.cpu_hz;
|
||||||
this.swap = data.swap;
|
this.swap = data.swap;
|
||||||
this.percpus = [];
|
this.percpus = [];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user