Add UI for a pull command box. ZeroClipboard will come next.

This commit is contained in:
Joseph Schorr 2013-09-26 18:21:29 -04:00
parent 2e476625de
commit 68cc25b197
2 changed files with 28 additions and 1 deletions

View file

@ -41,6 +41,7 @@ p.editable:hover .glyphicon {
.repo .header { .repo .header {
margin-bottom: 10px; margin-bottom: 10px;
position: relative;
} }
.repo .description { .repo .description {
@ -54,3 +55,23 @@ p.editable:hover .glyphicon {
.repo dl.dl-horizontal dd { .repo dl.dl-horizontal dd {
margin-left: 80px; margin-left: 80px;
} }
.repo .header h3 {
display: inline-block;
}
.repo .pull-command {
float: right;
display: inline-block;
}
.repo .pull-command {
font-size: 1.2em;
}
.repo .pull-command input {
color: #666;
padding: 4px;
border: 1px solid #ddd;
width: 300px;
}

View file

@ -7,12 +7,18 @@
<div class="header"> <div class="header">
<h3> <h3>
<span class="glyphicon glyphicon-hdd"></span> <span style="color: #aaa;"> {{repo.namespace}}</span> <span style="color: #ccc">/</span> {{repo.name}} <span class="glyphicon glyphicon-hdd"></span> <span style="color: #aaa;"> {{repo.namespace}}</span> <span style="color: #ccc">/</span> {{repo.name}}
</h3> </h3>
<!-- Pull command -->
<div class="pull-command">
Get this repository: <input type="text" value="{{ 'docker pull quay.io/' + repo.namespace + '/' + repo.name }}" readonly>
</div>
</div> </div>
<!-- Description --> <!-- Description -->
<p ng-class="'description lead ' + (repo.can_write ? 'editable' : 'noteditable')" ng-click="editDescription()"><span class="content">{{repo.description}}</span><span class="glyphicon glyphicon-pencil"></span></p> <p ng-class="'description lead ' + (repo.can_write ? 'editable' : 'noteditable')" ng-click="editDescription()"><span class="content">{{repo.description}}</span><span class="glyphicon glyphicon-pencil"></span></p>
<!-- Tab bar --> <!-- Tab bar -->
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
<li> <li>