Use lastBuildHash on repo, not lastBuild
lastBuildHash uses information for last build, which is available on the repo object, so it will not trigger an ajax request if we haven't fetched a build yet.
This commit is contained in:
parent
018eafe84b
commit
190bf9e837
|
@ -15,7 +15,7 @@
|
|||
{{/if}}
|
||||
</div>
|
||||
|
||||
{{#if lastBuild}}
|
||||
{{#if lastBuildHash.number}}
|
||||
{{#with lastBuildHash}}
|
||||
{{#if repo.slug}}
|
||||
{{#linkTo "build" repo id class="last_build"}}{{number}}{{/linkTo}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user