diff --git a/app/components/images/images.html b/app/components/images/images.html index 00fc2ec09..3f89048b2 100644 --- a/app/components/images/images.html +++ b/app/components/images/images.html @@ -21,15 +21,39 @@ - - - - - + + + + + - + diff --git a/app/components/images/imagesController.js b/app/components/images/imagesController.js index f73a8f1e8..ace6cce77 100644 --- a/app/components/images/imagesController.js +++ b/app/components/images/imagesController.js @@ -1,8 +1,14 @@ angular.module('images', []) .controller('ImagesController', ['$scope', 'Image', 'ViewSpinner', 'Messages', function ($scope, Image, ViewSpinner, Messages) { + $scope.sortType = 'Created'; + $scope.sortReverse = true; $scope.toggle = false; - $scope.predicate = '-Created'; + + $scope.order = function(sortType) { + $scope.sortReverse = ($scope.sortType === sortType) ? !$scope.sortReverse : false; + $scope.sortType = sortType; + }; $scope.showBuilder = function () { $('#build-modal').modal('show');
ActionIdRepositoryVirtualSizeCreated + + Id + + + + + + Repository + + + + + + VirtualSize + + + + + + Created + + + +
{{ image.Id|truncate:20}} {{ image|repotag }}