mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-18 06:26:30 +00:00
53 lines
1.8 KiB
Text
53 lines
1.8 KiB
Text
extends base
|
|
|
|
block append head
|
|
title #{Repo.Name}
|
|
|
|
block header
|
|
ol
|
|
li #{Repo.Owner} / #{Repo.Name}
|
|
|
|
ul.nav.nav-tabs
|
|
li.nav-item
|
|
a.nav-link.active[href="/"+Repo.FullName] Builds
|
|
li.nav-item
|
|
a.nav-link[href="/"+Repo.FullName+"/settings/badges"] Badges
|
|
li.nav-item
|
|
a.nav-link[href="/"+Repo.FullName+"/settings/encrypt"] Secrets
|
|
li.nav-item
|
|
a.nav-link[href="/"+Repo.FullName+"/settings"] Settings
|
|
|
|
block content
|
|
div.container
|
|
if len(Builds) == 0
|
|
div.alert.alert-info
|
|
| You have no builds
|
|
|
|
div.timeline
|
|
$repo = Repo
|
|
each $group in Groups
|
|
div.group
|
|
div.group-title
|
|
| commits on #{$group.Date}
|
|
each $build in $group.Builds
|
|
a.card[href=$repo.Name+"/"+$build.Number][data-build=$build.Number]
|
|
div.card-header
|
|
if $build.Avatar != ""
|
|
img[src=$build.Avatar]
|
|
else
|
|
img[src="/static/images/dummy.png"]
|
|
div.card-block
|
|
div
|
|
div.status[class=$build.Status] #{$build.Status}
|
|
h3 #{$build.Message}
|
|
p.card-text
|
|
em #{$build.Author}
|
|
span authored
|
|
em[data-livestamp=$build.Created]
|
|
span to
|
|
em #{$build.Branch}
|
|
|
|
|
|
block append scripts
|
|
script
|
|
new RepoViewModel("#{Repo.FullName}");
|