1
0
Fork 0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-03 23:26:29 +00:00
woodpecker/template/amber/repos.amber

37 lines
1 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
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"
});
});