Don't show link to last build if there's no last_build_id

This commit is contained in:
Piotr Sarnacki 2015-02-11 13:04:59 +01:00
parent 0309ac29c0
commit 911d4b6aa9

View File

@ -16,8 +16,10 @@
</div>
{{#with repo.lastBuildHash as lastBuild}}
{{#if repo.slug}}
{{#link-to "build" repo lastBuild.id
class="last_build"}}{{lastBuild.number}}{{/link-to}}
{{#if lastBuild.id}}
{{#link-to "build" repo lastBuild.id
class="last_build"}}{{lastBuild.number}}{{/link-to}}
{{/if}}
{{/if}}
{{/with}}