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

View file

@ -17,10 +17,20 @@
<!-- Pull command -->
<div class="pull-command">
Get this repository: <input type="text" value="{{ 'docker pull quay.io/' + repo.namespace + '/' + repo.name }}" readonly>
Get this repository:
<div class="pull-container">
<div class="input-group">
<input id="pull-text" type="text" class="form-control" value="{{ 'docker pull quay.io/' + repo.namespace + '/' + repo.name }}" readonly>
<span id="copyClipboard" class="input-group-addon" title="Copy to Clipboard" data-clipboard-target="pull-text">
<i class="icon-copy"></i>
</span>
</div>
</div>
</div>
</div>
<!-- Description -->
<p ng-class="'description lead ' + (repo.can_write ? 'editable' : 'noteditable')" ng-click="editDescription()"><span class="content">{{repo.description}}</span><i class="icon-edit"></i></p>