Merge branch 'master' of github.com:travis-ci/travis-web
This commit is contained in:
commit
753613fa2f
|
@ -12,6 +12,14 @@ require 'travis/model'
|
|||
|
||||
lastBuild: DS.belongsTo('Travis.Build')
|
||||
|
||||
lastBuildHash: (->
|
||||
{
|
||||
id: @get('lastBuildId')
|
||||
number: @get('lastBuildNumber')
|
||||
repo: this
|
||||
}
|
||||
).property('lastBuildId', 'lastBuildNumber')
|
||||
|
||||
allBuilds: (->
|
||||
allBuilds = DS.RecordArray.create
|
||||
type: Travis.Build
|
||||
|
|
|
@ -13,9 +13,11 @@
|
|||
<a {{action showRepo this href=true}} class="slug">{{slug}}</a>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{#if lastBuildId}}
|
||||
<a {{action showBuild this lastBuildId href=true}} class="last_build">{{lastBuildNumber}}</a>
|
||||
{{#with lastBuildHash}}
|
||||
{{#if id}}
|
||||
<a {{action showBuild repo id href=true}} class="last_build">{{number}}</a>
|
||||
{{/if}}
|
||||
{{/with}}
|
||||
|
||||
<p class="summary">
|
||||
<span class="duration_label">{{t repositories.duration}}:</span>
|
||||
|
|
Loading…
Reference in New Issue
Block a user