mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 15:29:42 +02:00
Add container naming to container display
This commit is contained in:
parent
2946a97f41
commit
e3f804ef88
4 changed files with 10 additions and 5 deletions
|
@ -62,6 +62,12 @@ angular.module('dockerui.filters', [])
|
|||
var i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)));
|
||||
return Math.round(bytes / Math.pow(1024, i), 2) + ' ' + sizes[[i]];
|
||||
};
|
||||
})
|
||||
.filter('containername', function() {
|
||||
return function(container) {
|
||||
var name = container.Names[0];
|
||||
return name.substring(1, name.length);
|
||||
};
|
||||
})
|
||||
.filter('getdate', function() {
|
||||
return function(data) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue