2015-09-30 01:21:17 +00:00
|
|
|
extends base
|
|
|
|
|
|
|
|
block append head
|
2016-03-25 13:39:41 +00:00
|
|
|
title Available Repositories
|
2015-09-30 01:21:17 +00:00
|
|
|
|
2015-10-02 23:47:54 +00:00
|
|
|
block header
|
|
|
|
ol
|
2016-03-25 13:39:41 +00:00
|
|
|
li Available Repositories
|
2016-03-24 02:13:03 +00:00
|
|
|
|
|
|
|
ul.nav.nav-tabs
|
|
|
|
li.nav-item
|
|
|
|
a.nav-link[href="/"] Active Repositories
|
|
|
|
li.nav-item
|
2016-03-25 13:39:41 +00:00
|
|
|
a.nav-link.active[href="/repos"] Available Repositories
|
2015-10-02 23:47:54 +00:00
|
|
|
|
2015-09-30 01:21:17 +00:00
|
|
|
block content
|
|
|
|
div.container
|
2015-10-02 23:47:54 +00:00
|
|
|
if len(Repos) == 0
|
|
|
|
div.alert.alert-info
|
|
|
|
| Your repository list is empty.
|
2015-09-30 01:21:17 +00:00
|
|
|
|
2016-03-24 02:13:03 +00:00
|
|
|
else
|
|
|
|
div.row.repo-row
|
|
|
|
input.repo-search[type="search"][placeholder="Filter..."]
|
|
|
|
div.repo-list
|
|
|
|
each $repo in Repos
|
|
|
|
div.col-sm-4
|
|
|
|
a.card[href="/"+$repo.FullName]
|
|
|
|
div.card-header
|
|
|
|
if $repo.Avatar != ""
|
|
|
|
img.avatar[src=$repo.Avatar]
|
|
|
|
else
|
|
|
|
img.avatar[src="/static/images/dummy.png"]
|
|
|
|
div.card-block
|
|
|
|
h3.login #{$repo.Name}
|
|
|
|
div.full_name.hidden #{$repo.FullName}
|
|
|
|
|
2015-10-15 22:40:27 +00:00
|
|
|
block append scripts
|
|
|
|
if len(Repos) != 0
|
|
|
|
script
|
|
|
|
$(window).load(function(){
|
2016-03-25 13:39:41 +00:00
|
|
|
$(".repo-list").searcher({
|
|
|
|
itemSelector: ".col-sm-4",
|
|
|
|
textSelector: ".full_name",
|
|
|
|
inputSelector: ".repo-search"
|
|
|
|
});
|
2015-10-15 22:40:27 +00:00
|
|
|
});
|