nci/static/js/app/components/builds/item.jade

49 lines
1.1 KiB
Plaintext
Raw Normal View History

2015-05-09 20:19:25 +00:00
mixin statusText(build)
if build.status === 'in-progress'
2015-05-09 21:36:17 +00:00
span in progress
2015-05-09 20:19:25 +00:00
if build.status === 'queued'
2015-05-09 21:36:17 +00:00
span queued
2015-05-09 20:19:25 +00:00
if build.status === 'done'
2015-05-09 21:36:17 +00:00
span done
- var build = this.props.build;
2015-05-09 20:19:25 +00:00
.build(class="build__#{build.status}")
2015-05-09 22:04:36 +00:00
.build_controls.pull-right
a(href="javascript:void(0);", onClick=this.onBuildSelect(build.id))
i.fa.fa-2x.fa-repeat(title="Rebuild", style={marginTop: '5px'}, onClick=this.onRebuildProject(build.project.name))
2015-05-09 20:19:25 +00:00
.build_header
2015-05-09 21:36:17 +00:00
span #
span= build.id
span
a(href="javascript:void(0)")= build.project.name
div
if build.scm
span.build_info
i.fa.fa-fw.fa-code-fork
span= build.scm.rev.id
span.build_info
i.fa.fa-fw.fa-comment-o
|
span= build.scm.rev.comment
if build.endDate
span.build_info
i.fa.fa-fw.fa-clock-o
| builded at
DateTime(date=new Date(build.createDate))
else
if build.startDate
span.build_info
i.fa.fa-fw.fa-clock-o
| started at
DateTime(date=new Date(build.createDate))
else
span.build_info
i.fa.fa-fw.fa-clock-o
| queued at
DateTime(date=new Date(build.createDate))