Merge branch 'master' into ember-cli
Conflicts: assets/scripts/app/helpers/handlebars.coffee
This commit is contained in:
commit
a0932e51ae
10
assets/scripts/app/helpers/humanize-state.coffee
Normal file
10
assets/scripts/app/helpers/humanize-state.coffee
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
safe = Travis.Helpers.safe
|
||||||
|
|
||||||
|
fn = (state) ->
|
||||||
|
if state == 'received'
|
||||||
|
'booting'
|
||||||
|
else
|
||||||
|
state
|
||||||
|
|
||||||
|
|
||||||
|
Travis.Handlebars.humanizeState = fn
|
|
@ -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">
|
||||||
|
|
|
@ -8,6 +8,9 @@
|
||||||
<li class="home">
|
<li class="home">
|
||||||
{{#link-to "main"}}Home{{/link-to}}
|
{{#link-to "main"}}Home{{/link-to}}
|
||||||
</li>
|
</li>
|
||||||
|
{{#if config.pro}}
|
||||||
|
<li><a href="http://docs.travis-ci.com">Docs</a></li>
|
||||||
|
{{/if}}
|
||||||
{{#if config.enterprise}}
|
{{#if config.enterprise}}
|
||||||
<li><a href="http://docs.travis-ci.com">Docs</a></li>
|
<li><a href="http://docs.travis-ci.com">Docs</a></li>
|
||||||
{{else}}
|
{{else}}
|
||||||
|
@ -53,10 +56,6 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#unless config.pro}}
|
{{#unless config.pro}}
|
||||||
<li>
|
|
||||||
<a href="https://travisci.workable.com" class="werehiring" target="_blank">We're Hiring!</a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li class="traviscicom">
|
<li class="traviscicom">
|
||||||
<a href="http://travis-ci.com">Travis CI for Private Repositories</a>
|
<a href="http://travis-ci.com">Travis CI for Private Repositories</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -128,6 +128,7 @@ require 'helpers/travis-field'
|
||||||
require 'helpers/travis-field'
|
require 'helpers/travis-field'
|
||||||
require 'helpers/filter-input'
|
require 'helpers/filter-input'
|
||||||
require 'helpers/capitalize'
|
require 'helpers/capitalize'
|
||||||
|
require 'helpers/humanize-state'
|
||||||
require 'helpers/github-commit-link'
|
require 'helpers/github-commit-link'
|
||||||
require 'helpers/format-time'
|
require 'helpers/format-time'
|
||||||
require 'helpers/format-duration'
|
require 'helpers/format-duration'
|
||||||
|
@ -146,6 +147,7 @@ Ember.Handlebars.registerHelper('travis-field', Travis.Handlebars.travisField)
|
||||||
Ember.Handlebars.registerHelper('filter-input', Travis.Handlebars.filterInput)
|
Ember.Handlebars.registerHelper('filter-input', Travis.Handlebars.filterInput)
|
||||||
|
|
||||||
Ember.Handlebars.registerBoundHelper('capitalize', Travis.Handlebars.capitalize)
|
Ember.Handlebars.registerBoundHelper('capitalize', Travis.Handlebars.capitalize)
|
||||||
|
Ember.Handlebars.registerBoundHelper('humanize-state', Travis.Handlebars.humanizeState)
|
||||||
Ember.Handlebars.registerBoundHelper('github-commit-link', Travis.Handlebars.githubCommitLink)
|
Ember.Handlebars.registerBoundHelper('github-commit-link', Travis.Handlebars.githubCommitLink)
|
||||||
Ember.Handlebars.registerBoundHelper('format-time', Travis.Handlebars.formatTime)
|
Ember.Handlebars.registerBoundHelper('format-time', Travis.Handlebars.formatTime)
|
||||||
Ember.Handlebars.registerBoundHelper('format-duration', Travis.Handlebars.formatDuration)
|
Ember.Handlebars.registerBoundHelper('format-duration', Travis.Handlebars.formatDuration)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user