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