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"}}> <li id="tab_build" {{bindAttr class="view.classBuild"}}>
<h5> <h5>
{{#with view.build}} {{#with view.build}}
{{#if id}}
<a {{action showBuild repo this href=true}}> <a {{action showBuild repo this href=true}}>
{{t repositories.tabs.build}} #{{number}} {{t repositories.tabs.build}} #{{number}}
</a> </a>
{{/if}}
{{/with}} {{/with}}
</h5> </h5>
</li> </li>
<li id="tab_job" {{bindAttr class="view.classJob"}}> <li id="tab_job" {{bindAttr class="view.classJob"}}>
<h5> <h5>
{{#with view.job}} {{#with view.job}}
{{#if id}}
<a {{action showJob repo this href=true}}> <a {{action showJob repo this href=true}}>
{{t repositories.tabs.job}} #{{number}} {{t repositories.tabs.job}} #{{number}}
</a> </a>
{{/if}}
{{/with}} {{/with}}
</h5> </h5>
</li> </li>