diff --git a/js/controllers.js b/js/controllers.js index 46a2628f2..8b6db4ef3 100644 --- a/js/controllers.js +++ b/js/controllers.js @@ -141,6 +141,10 @@ function ContainerController($scope, $routeParams, $location, Container) { $scope.changes = []; + $scope.hasContent = function(data) { + return data !== null && data !== undefined && data.length > 1; + }; + $scope.getChanges = function() { Container.changes({id: $routeParams.id}, function(d) { $scope.changes = d; diff --git a/partials/container.html b/partials/container.html index ddbed3b87..ec230cbc4 100644 --- a/partials/container.html +++ b/partials/container.html @@ -52,7 +52,7 @@