woodpecker/template/amber/build.amber

100 lines
3.7 KiB
Text
Raw Normal View History

2015-09-30 01:21:17 +00:00
extends base
block append head
title #{Repo.Name} · #{Build.Number}
block header
ol
li
a[href="/"+Repo.FullName]
| #{Repo.Owner} / #{Repo.Name}
li.separator
i.material-icons chevron_right
li #{Build.Number}
block content
div.container-fluid
div.row
2015-10-01 22:54:39 +00:00
div.col-md-4.sticky
2015-09-30 01:21:17 +00:00
div.build-summary
div
div[class=Build.Status][style="display:none"] #{Build.Status}
2015-10-07 20:47:16 +00:00
h3
| #{Build.Message}
a.material-icons[href=Build.Link][target="_blank"] link
2015-09-30 01:21:17 +00:00
p
em #{Build.Author}
if Build.Event != "deployment"
span authored
else
span deployed
2015-09-30 01:21:17 +00:00
em[data-livestamp=Build.Created]
span to
if Build.Event != "deployment"
em #{Build.Branch}
else
em #{Build.Deploy}
2015-09-30 01:21:17 +00:00
div.job-list
$curr = Job
$build = Build
$repo = Repo
each $job in Jobs
a[href="/" + $repo.FullName +"/"+ $build.Number+"/"+$job.Number][data-job=$job.Number]
.active ? $curr.Number == $job.Number
div
div.status[class=$job.Status] #{$job.Status}
div
if len($job.Environment) != 0
h3
each $key, $val in $job.Environment
div.env #{$key}=#{$val}
div[class="msg-pending"]
.hidden ? $job.Status != "pending"
| pending assignment to a worker
div[class="msg-running"]
.hidden ? $job.Status != "running"
| started
span[data-livestamp=$job.Started]
div[class="msg-finished"]
.hidden ? $job.Finished == 0
| finished
2015-09-30 01:21:17 +00:00
span[data-livestamp=$job.Finished]
div[class="msg-exited"]
.hidden ? $job.Finished == 0
| with exit code
span #{$job.ExitCode}
2015-09-30 01:21:17 +00:00
div.build-btn-group
button.btn.btn-info.hidden#restart restart
button.btn.btn-info.hidden#cancel cancel
2015-09-30 01:21:17 +00:00
div.col-md-8
if Build.Signed
if Build.Verified
noscript
else
div.alert.alert-warning
| Your .drone.yml.sig file did not match your .drone.yml
if Job.Error != ""
div.alert.alert-danger #{Job.Error}
else
2016-05-11 07:36:01 +00:00
div#output
button.tail#tail
i.material-icons expand_more
2015-09-30 01:21:17 +00:00
block append scripts
script
2015-10-01 22:54:39 +00:00
$('.sticky').Stickyfill();
2015-09-30 01:21:17 +00:00
var repo = #{json(Repo.FullName)};
var build = #{json(Build.Number)};
var job = #{json(Job.Number)};
var status = #{json(Job.Status)};
var view = new JobViewModel(repo, build, job, status);