Add humanize-state helper
We don't want to display 'received' state as it's not meaningful for the users. We're displaying 'booting' instead.
This commit is contained in:
parent
fefd18593e
commit
ca659944cd
|
@ -176,3 +176,8 @@ Ember.Handlebars.registerBoundHelper 'formatLog', (log, options) ->
|
||||||
item = parentView.get(options.item)
|
item = parentView.get(options.item)
|
||||||
Travis.Helpers.formatLog(log, repo, item) || ''
|
Travis.Helpers.formatLog(log, repo, item) || ''
|
||||||
|
|
||||||
|
Ember.Handlebars.registerBoundHelper 'humanize-state', (state) ->
|
||||||
|
if state == 'received'
|
||||||
|
'booting'
|
||||||
|
else
|
||||||
|
state
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<div class="build-status">
|
<div class="build-status">
|
||||||
{{#link-to "build" repo build}}#{{build.number}} {{build.state}}{{/link-to}}
|
{{#link-to "build" repo build}}#{{build.number}} {{humanize-state build.state}}{{/link-to}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="runtime">
|
<div class="runtime">
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<div class="build-status">
|
<div class="build-status">
|
||||||
{{#link-to "job" repo job}}#{{job.number}} {{job.state}}{{/link-to}}
|
{{#link-to "job" repo job}}#{{job.number}} {{humanize-state job.state}}{{/link-to}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="runtime">
|
<div class="runtime">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user