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:
Piotr Sarnacki 2013-10-30 14:36:29 +01:00
parent 018eafe84b
commit 190bf9e837

View File

@ -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}}