Don't show link to last build if there's no last_build_id
This commit is contained in:
parent
0309ac29c0
commit
911d4b6aa9
|
@ -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}}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user