mirror of
https://github.com/portainer/portainer.git
synced 2025-08-05 05:45:22 +02:00
Add container name to stats and top pages.
This commit is contained in:
parent
49d4c5800f
commit
b244242cb2
4 changed files with 40 additions and 18 deletions
|
@ -1,6 +1,6 @@
|
|||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<h1>Stats</h1>
|
||||
<h1>Stats for: {{ containerName }}</h1>
|
||||
|
||||
<h2>CPU</h2>
|
||||
|
||||
|
|
|
@ -172,5 +172,11 @@ angular.module('stats', [])
|
|||
}
|
||||
return cpuPercent;
|
||||
}
|
||||
|
||||
Container.get({id: $routeParams.id}, function (d) {
|
||||
$scope.containerName = d.Name.substring(1);
|
||||
}, function (e) {
|
||||
Messages.error("Failure", e.data);
|
||||
});
|
||||
}])
|
||||
;
|
Loading…
Add table
Add a link
Reference in a new issue