Use #with helper for job and builds link on tabs

Thanks to that, id will be refreshed when the build changes.
This commit is contained in:
Piotr Sarnacki 2012-12-13 01:44:04 +01:00
parent 753613fa2f
commit 9f7796a023

View File

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