Make empty repo table a bit nicer

This commit is contained in:
Joseph Schorr 2015-07-20 14:43:13 -04:00
parent 679044574a
commit 2704441eed
2 changed files with 52 additions and 47 deletions

View file

@ -51,7 +51,7 @@
</div> </div>
<div ng-if="!starred && repositoriesResource.value.length == 0"> <div ng-if="!starred && repositoriesResource.value.length == 0">
<div class="empty-primary-msg">This namespace doesn't have any viewable repositories.</div> <div class="empty-primary-msg">This namespace doesn't have any viewable repositories.</div>
<div class="empty-secondary-msg">Either no repositories exist yet or you may not have permission to view any. If you have permission, try <a href="/new">creating a new repository</a>.</div> <div class="empty-secondary-msg">Either no repositories exist yet or you may not have permission to view any. If you have permission, try <a href="/new?namespace={{ namespace.name }}">creating a new repository</a>.</div>
</div> </div>
</div> </div>

View file

@ -1,5 +1,10 @@
<div class="repo-list-table-element"> <div class="repo-list-table-element">
<table class="co-table"> <div ng-if="orderedRepositories.length== 0">
<div class="empty-primary-msg">You do not have any viewable repositories.</div>
<div class="empty-secondary-msg">Either no repositories exist yet or you may not have permission to view any. If you have permission, try <a href="/new">creating a new repository</a>.</div>
</div>
<table class="co-table" ng-if="orderedRepositories.length">
<thead> <thead>
<td class="hidden-xs" <td class="hidden-xs"
ng-class="tablePredicateClass('full_name', options.predicate, options.reverse)"> ng-class="tablePredicateClass('full_name', options.predicate, options.reverse)">