2015-09-30 01:21:17 +00:00
|
|
|
extends base
|
|
|
|
|
|
|
|
block append head
|
|
|
|
title Dashboard
|
|
|
|
|
2015-10-02 23:47:54 +00:00
|
|
|
block header
|
|
|
|
ol
|
|
|
|
li Dashboard
|
|
|
|
|
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
|
|
|
|
2015-10-02 23:47:54 +00:00
|
|
|
div.row.repo-row
|
2015-10-15 22:40:27 +00:00
|
|
|
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
|
|
|
|
img.avatar[src=$repo.Avatar]
|
|
|
|
div.card-block
|
|
|
|
h3.login #{$repo.Name}
|
2015-10-15 22:54:19 +00:00
|
|
|
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(){
|
|
|
|
$(".repo-list").searcher({
|
|
|
|
itemSelector: ".col-sm-4",
|
2015-10-15 22:54:19 +00:00
|
|
|
textSelector: ".full_name",
|
2015-10-15 22:40:27 +00:00
|
|
|
inputSelector: ".repo-search"
|
|
|
|
});
|
|
|
|
});
|