fix scm info showing - scm could appear later

This commit is contained in:
oleg 2015-07-14 00:39:26 +03:00
parent 7b6e41c43a
commit 9d3b69a474

View File

@ -74,26 +74,27 @@ div.row
DateTime(date=new Date(this.state.build.endDate)) DateTime(date=new Date(this.state.build.endDate))
else else
| - | -
- var rev = this.state.build.scm && this.state.build.scm.rev || {};
.col-md-6 .col-md-6
p p
i.fa.fa-fw.fa-user i.fa.fa-fw.fa-user
| |
| Commit author | Commit author
| |
span= this.state.build.scm.rev.author span= rev.author || '-'
p p
i.fa.fa-fw.fa-code-fork i.fa.fa-fw.fa-code-fork
| |
| Revision | Revision
| |
span= this.state.build.scm.rev.id span= rev.id || '-'
p p
i.fa.fa-fw.fa-comment-o i.fa.fa-fw.fa-comment-o
| |
| Comment | Comment
| |
span= this.state.build.scm.rev.comment span= rev.comment || '-'
h2 h2
i.fa.fa-fw.fa-terminal i.fa.fa-fw.fa-terminal