woodpecker/template/amber/repos.amber

40 lines
1.2 KiB
Text
Raw Normal View History

2015-09-30 01:21:17 +00:00
extends base
block append head
title Dashboard
block header
ol
li Dashboard
2015-09-30 01:21:17 +00:00
block content
div.container
if len(Repos) == 0
div.alert.alert-info
| Your repository list is empty.
2015-09-30 01:21:17 +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
2016-01-31 23:00:47 +00:00
if $repo.Avatar != ""
img.avatar[src=$repo.Avatar]
else
img.avatar[src="/static/images/dummy.png"]
2015-10-15 22:40:27 +00:00
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"
});
});