Add clipboard copy support for the pull command

This commit is contained in:
Joseph Schorr 2013-09-27 16:12:51 -04:00
parent 479e23b09d
commit c466bca32d
7 changed files with 41 additions and 5 deletions

8
static/js/ZeroClipboard.min.js vendored Executable file

File diff suppressed because one or more lines are too long

BIN
static/js/ZeroClipboard.swf Executable file

Binary file not shown.

View file

@ -45,4 +45,4 @@ quayApp.run(['$location', '$rootScope', function($location, $rootScope) {
$rootScope.title = current.$$route.title;
}
});
}]);
}]);

View file

@ -43,6 +43,8 @@ function RepoCtrl($scope, Restangular, $routeParams, $rootScope) {
$rootScope.title = namespace + '/' + name;
$scope.repo = repo;
$scope.currentTag = repo.tags[tag] || repo.tags['latest'];
var clip = new ZeroClipboard($('#copyClipboard'), { 'moviePath': 'static/js/ZeroClipboard.swf' });
}, function() {
$scope.repo = null;
$rootScope.title = 'Unknown Repository';