From 190bf9e837bd6ba7d7ab9585531b1304e966b389 Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Wed, 30 Oct 2013 14:36:29 +0100 Subject: [PATCH] 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. --- assets/scripts/app/templates/repos/list.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/scripts/app/templates/repos/list.hbs b/assets/scripts/app/templates/repos/list.hbs index 60ffe6a4..626ffb3c 100644 --- a/assets/scripts/app/templates/repos/list.hbs +++ b/assets/scripts/app/templates/repos/list.hbs @@ -15,7 +15,7 @@ {{/if}} - {{#if lastBuild}} + {{#if lastBuildHash.number}} {{#with lastBuildHash}} {{#if repo.slug}} {{#linkTo "build" repo id class="last_build"}}{{number}}{{/linkTo}}