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

49 lines
1.0 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}")
.pull-right
2015-05-09 21:36:17 +00:00
div
a(href="javascript:void(0);", onClick=this.onBuildSelect(build.id), style={marginRight: '5px'}) show console
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))