2015-06-09 21:58:57 +00:00
< div class = "repo-list-table-element" >
2015-07-22 20:59:31 +00:00
< div class = "cor-loader" ng-if = "isLoading" > < / div >
2016-09-21 18:23:32 +00:00
< div class = "co-top-bar" >
< span class = "co-filter-box" >
2017-03-10 19:33:44 +00:00
< span class = "page-controls" total-count = "orderedRepositories.entries.length" current-page = "options.page" page-size = "reposPerPage" style = "vertical-align: top" > < / span >
2016-09-21 18:23:32 +00:00
< 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" >
2015-12-28 21:29:17 +00:00
< 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 >
2015-06-09 21:58:57 +00:00
2016-09-21 18:23:32 +00:00
< 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 >
2016-05-17 20:29:24 +00:00
< 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)">
2016-03-22 18:15:54 +00:00
< 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;">
2016-03-22 18:15:54 +00:00
< 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;">
2016-03-22 18:15:54 +00:00
< 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)"
2016-08-23 17:02:55 +00:00
style="width: 70px"
2017-03-23 21:16:19 +00:00
ng-if="loggedIn & & repoKind != 'application'">
2016-03-22 18:15:54 +00:00
< a ng-click = "orderBy('is_starred')" > Star< / a >
2015-07-20 18:43:13 +00:00
< / td >
< / thead >
< tbody >
2016-09-21 18:23:32 +00:00
< 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" >
2016-09-21 18:23:32 +00:00
< span class = "avatar" size = "24" data = "::getAvatarData(repository.namespace)" > < / span >
2017-03-23 21:16:19 +00:00
< a href = "/repository/{{ ::repository.namespace }}/{{ ::repository.name }}" ng-if = "repoKind != 'application'" >
< span class = "namespace" > {{ ::repository.namespace }}< / span >
< span class = "name" > {{ ::repository.name }}< / span >
< / a >
< a href = "/application/{{ ::repository.namespace }}/{{ ::repository.name }}" ng-if = "repoKind == 'application'" >
2016-09-21 18:23:32 +00:00
< 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" >
2016-09-21 18:23:32 +00:00
< span ng-if = "::repository.last_modified" >
{{ ::repository.last_modified * 1000 | amCalendar }}
2015-07-20 18:43:13 +00:00
< / span >
2016-09-21 18:23:32 +00:00
< 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" >
2016-09-21 18:23:32 +00:00
< span class = "strength-indicator" value = "::repository.popularity" maximum = "::maxPopularity"
2015-07-22 18:20:46 +00:00
log-base="10">< / span >
2015-07-20 18:43:13 +00:00
< / td >
2017-03-23 21:16:19 +00:00
< td ng-show = "loggedIn && repoKind != 'application'" >
2016-09-21 18:23:32 +00:00
< span class = "repo-star" repository = "::repository"
2016-08-23 17:02:55 +00:00
star-toggled="starToggled({'repository': repository})">< / span >
< / td >
2015-07-20 18:43:13 +00:00
< / tr >
< / tbody >
< / table >
2016-03-22 18:15:54 +00:00
< / div >