--- a/html/window.html Tue Dec 09 01:27:53 2014 -0600
+++ b/html/window.html Tue Dec 09 01:32:43 2014 -0600
@@ -29,6 +29,7 @@
+ <div>Clipboard: {{clipboard}}</div> <accordion close-others="true">
<accordion-group data-ng-repeat="repo in repos" data-ng-click="select_repo(repo)">
@@ -42,7 +43,7 @@
<p>{{repo.description}}</p>
<li data-ng-repeat="(layer, tags) in tags">
- <span data-ng-repeat="tag in tags"><code>{{tag}}</code><span class="fa fa-clipboard"></span>{{$last ? '' : ', '}}</span>
+ <span data-ng-repeat="tag in tags"><code>{{tag}}</code><span data-ng-click="copy_tag(tag)" class="fa fa-clipboard"></span>{{$last ? '' : ', '}}</span> --- a/js/app.js Tue Dec 09 01:27:53 2014 -0600
+++ b/js/app.js Tue Dec 09 01:32:43 2014 -0600
@@ -44,6 +44,7 @@
+ $scope.clipboard = null; $scope.refresh = function() {
if($scope.registry.indexOf("http://") !== 0 && $scope.registry.indexOf("http://") !== 0) {
@@ -103,4 +104,8 @@
console.log("Failed to get the tag list: " + status);
+ $scope.copy_tag = function(tag) { + $scope.clipboard = $scope.registry + "/" + $scope.repo.name + ":" + tag;