This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/static/directives/repo-list-table.html

73 lines
3.4 KiB
HTML
Raw Normal View History

<div class="repo-list-table-element">
<div class="cor-loader" ng-if="isLoading"></div>
<div class="co-top-bar">
<span class="co-filter-box">
<span class="page-controls" total-count="orderedRepositories.entries.length" current-page="options.page" page-size="reposPerPage"></span>
<input class="form-control" type="text" ng-model="options.filter" placeholder="Filter Repositories..." style="margin-right: 10px;">
</span>
</div>
<div ng-if="orderedRepositories.entries.length == 0 && !isLoading && !options.filter">
<div class="empty-primary-msg" ng-if="namespaces.length != 1">You do not have any viewable repositories.</div>
<div class="empty-primary-msg" ng-if="namespaces.length == 1">This namespace doesn't have any viewable repositories.</div>
2015-07-20 18:43:13 +00:00
<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>
<div ng-if="orderedRepositories.entries.length == 0 && !isLoading && options.filter">
<div class="empty-primary-msg">No matching repositories</div>
<div class="empty-secondary-msg">There are not matching repositories for the entered filter</div>
</div>
<table class="co-table" ng-if="orderedRepositories.entries.length && !isLoading">
2015-07-20 18:43:13 +00:00
<thead>
<td class="hidden-xs"
ng-class="tablePredicateClass('full_name', options.predicate, options.reverse)">
<a ng-click="orderBy('full_name')">Repository Name</a>
2015-07-20 18:43:13 +00:00
</td>
<td class="hidden-xs"
ng-class="tablePredicateClass('last_modified_datetime', options.predicate, options.reverse)"
style="min-width: 120px;">
<a ng-click="orderBy('last_modified_datetime')">Last Modified</a>
2015-07-20 18:43:13 +00:00
</td>
<td class="hidden-xs"
ng-class="tablePredicateClass('popularity', options.predicate, options.reverse)"
style="min-width: 20px;">
<a ng-click="orderBy('popularity')">Activity</a>
2015-07-20 18:43:13 +00:00
</td>
<td class="hidden-xs"
ng-class="tablePredicateClass('is_starred', options.predicate, options.reverse)"
style="width: 70px"
ng-if="loggedIn">
<a ng-click="orderBy('is_starred')">Star</a>
2015-07-20 18:43:13 +00:00
</td>
</thead>
<tbody>
<tr ng-repeat="repository in orderedRepositories.entries | slice:(reposPerPage * options.page):(reposPerPage * (options.page + 1))">
2015-07-20 18:43:13 +00:00
<td class="repo-name-icon">
<span class="avatar" size="24" data="::getAvatarData(repository.namespace)"></span>
<a href="/repository/{{ ::repository.namespace }}/{{ ::repository.name }}">
<span class="namespace">{{ ::repository.namespace }}</span>
<span class="name">{{ ::repository.name }}</span>
2015-07-20 18:43:13 +00:00
</a>
</td>
<td class="last-modified">
<span ng-if="::repository.last_modified">
{{ ::repository.last_modified * 1000 | amCalendar }}
2015-07-20 18:43:13 +00:00
</span>
<span class="empty" ng-if="::!repository.last_modified">(Empty Repository)</span>
2015-07-20 18:43:13 +00:00
</td>
<td class="popularity hidden-xs">
<span class="strength-indicator" value="::repository.popularity" maximum="::maxPopularity"
log-base="10"></span>
2015-07-20 18:43:13 +00:00
</td>
<td ng-show="loggedIn">
<span class="repo-star" repository="::repository"
star-toggled="starToggled({'repository': repository})"></span>
</td>
2015-07-20 18:43:13 +00:00
</tr>
</tbody>
</table>
</div>