1
0
Fork 0
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:
Michael Crosby 2013-12-13 10:05:35 -08:00
parent 2946a97f41
commit e3f804ef88
4 changed files with 10 additions and 5 deletions

View file

@ -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) {