Handle empty repos
This commit is contained in:
parent
927b280f1a
commit
f160483af4
2 changed files with 60 additions and 49 deletions
|
@ -353,6 +353,12 @@ p.editable:hover i {
|
||||||
margin-bottom: 40px;
|
margin-bottom: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.repo .empty-message {
|
||||||
|
padding: 6px;
|
||||||
|
font-size: 1.8em;
|
||||||
|
color: #ccc;
|
||||||
|
}
|
||||||
|
|
||||||
.repo dl.dl-horizontal dt {
|
.repo dl.dl-horizontal dt {
|
||||||
width: 60px;
|
width: 60px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,6 +50,11 @@
|
||||||
<i class="icon-edit"></i>
|
<i class="icon-edit"></i>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<div class="repo-content" ng-show="!currentTag.image">
|
||||||
|
<div class="empty-message">(This repository is empty)</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="repo-content" ng-show="currentTag.image">
|
||||||
<!-- Tab bar -->
|
<!-- Tab bar -->
|
||||||
<ul class="nav nav-tabs">
|
<ul class="nav nav-tabs">
|
||||||
<li>
|
<li>
|
||||||
|
@ -71,7 +76,6 @@
|
||||||
<dl class="dl-horizontal">
|
<dl class="dl-horizontal">
|
||||||
<dt>Created</dt>
|
<dt>Created</dt>
|
||||||
<dd am-time-ago="parseDate(currentTag.image.created)"></dd>
|
<dd am-time-ago="parseDate(currentTag.image.created)"></dd>
|
||||||
|
|
||||||
<dt>ID</dt>
|
<dt>ID</dt>
|
||||||
<dd>{{ currentTag.image.id }}</dd>
|
<dd>{{ currentTag.image.id }}</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
@ -106,6 +110,7 @@
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- Modal edit for the description -->
|
<!-- Modal edit for the description -->
|
||||||
<div class="modal fade" id="editModal">
|
<div class="modal fade" id="editModal">
|
||||||
|
|
Reference in a new issue