harness-drone/template/amber/repos.amber
2015-10-15 15:54:19 -07:00

36 lines
1 KiB
Text

extends base
block append head
title Dashboard
block header
ol
li Dashboard
block content
div.container
if len(Repos) == 0
div.alert.alert-info
| Your repository list is empty.
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
img.avatar[src=$repo.Avatar]
div.card-block
h3.login #{$repo.Name}
div.full_name.hidden #{$repo.FullName}
block append scripts
if len(Repos) != 0
script
$(window).load(function(){
$(".repo-list").searcher({
itemSelector: ".col-sm-4",
textSelector: ".full_name",
inputSelector: ".repo-search"
});
});