Display link to build/job only if id is present already

This commit is contained in:
Piotr Sarnacki 2012-12-13 15:17:04 +01:00
parent 9f7796a023
commit 6fd56d4521

View File

@ -38,18 +38,22 @@
<li id="tab_build" {{bindAttr class="view.classBuild"}}>
<h5>
{{#with view.build}}
<a {{action showBuild repo this href=true}}>
{{t repositories.tabs.build}} #{{number}}
</a>
{{#if id}}
<a {{action showBuild repo this href=true}}>
{{t repositories.tabs.build}} #{{number}}
</a>
{{/if}}
{{/with}}
</h5>
</li>
<li id="tab_job" {{bindAttr class="view.classJob"}}>
<h5>
{{#with view.job}}
<a {{action showJob repo this href=true}}>
{{t repositories.tabs.job}} #{{number}}
</a>
{{#if id}}
<a {{action showJob repo this href=true}}>
{{t repositories.tabs.job}} #{{number}}
</a>
{{/if}}
{{/with}}
</h5>
</li>