2017-09-14 14:51:32 +08:00
|
|
|
{{if eq .State "pending"}}
|
2017-11-21 13:43:00 +08:00
|
|
|
<a href="{{.TargetURL}}" target=_blank><i class="commit-status circle icon yellow"></i></a>
|
2017-09-14 14:51:32 +08:00
|
|
|
{{end}}
|
|
|
|
{{if eq .State "success"}}
|
2017-11-21 13:43:00 +08:00
|
|
|
<a href="{{.TargetURL}}" target=_blank><i class="commit-status check icon green"></i></a>
|
2017-09-14 14:51:32 +08:00
|
|
|
{{end}}
|
|
|
|
{{if eq .State "error"}}
|
2017-11-21 13:43:00 +08:00
|
|
|
<a href="{{.TargetURL}}" target=_blank><i class="commit-status warning icon red"></i></a>
|
2017-09-14 14:51:32 +08:00
|
|
|
{{end}}
|
|
|
|
{{if eq .State "failure"}}
|
2017-11-21 13:43:00 +08:00
|
|
|
<a href="{{.TargetURL}}" target=_blank><i class="commit-status remove icon red"></i></a>
|
2017-09-14 14:51:32 +08:00
|
|
|
{{end}}
|
|
|
|
{{if eq .State "warning"}}
|
2017-11-21 13:43:00 +08:00
|
|
|
<a href="{{.TargetURL}}" target=_blank><i class="commit-status warning sign icon yellow"></i></a>
|
2017-09-14 14:51:32 +08:00
|
|
|
{{end}}
|