diff --git a/static/js/app.js b/static/js/app.js index 9a54b54ab..6b3679f55 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -1,4 +1,4 @@ -quayApp = angular.module('quay', ['restangular'], function($provide) { +quayApp = angular.module('quay', ['restangular', 'angularMoment'], function($provide) { $provide.factory('UserService', ['Restangular', function(Restangular) { var userResponse = { verified: false, diff --git a/static/js/controllers.js b/static/js/controllers.js index 0d33b3d10..024fcf4e4 100644 --- a/static/js/controllers.js +++ b/static/js/controllers.js @@ -28,7 +28,11 @@ function RepoCtrl($scope, Restangular, $routeParams, $rootScope) { $('#editModal').modal('hide'); $scope.repo.description = $('#descriptionEdit')[0].value; $scope.repo.put(); - }; + }; + + $scope.parseDate = function(dateString) { + return Date.parse(dateString); + }; var namespace = $routeParams.namespace; var name = $routeParams.name; diff --git a/static/partials/view-repo.html b/static/partials/view-repo.html index a47075ae3..a472d4a7f 100644 --- a/static/partials/view-repo.html +++ b/static/partials/view-repo.html @@ -39,7 +39,7 @@