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:
parent
753613fa2f
commit
9f7796a023
|
@ -37,20 +37,20 @@
|
||||||
</li>
|
</li>
|
||||||
<li id="tab_build" {{bindAttr class="view.classBuild"}}>
|
<li id="tab_build" {{bindAttr class="view.classBuild"}}>
|
||||||
<h5>
|
<h5>
|
||||||
{{#if view.build.id}}
|
{{#with view.build}}
|
||||||
<a {{action showBuild view.repo view.build href=true}}>
|
<a {{action showBuild repo this href=true}}>
|
||||||
{{t repositories.tabs.build}} #{{view.build.number}}
|
{{t repositories.tabs.build}} #{{number}}
|
||||||
</a>
|
</a>
|
||||||
{{/if}}
|
{{/with}}
|
||||||
</h5>
|
</h5>
|
||||||
</li>
|
</li>
|
||||||
<li id="tab_job" {{bindAttr class="view.classJob"}}>
|
<li id="tab_job" {{bindAttr class="view.classJob"}}>
|
||||||
<h5>
|
<h5>
|
||||||
{{#if view.job.id}}
|
{{#with view.job}}
|
||||||
<a {{action showJob view.repo view.job href=true}}>
|
<a {{action showJob repo this href=true}}>
|
||||||
{{t repositories.tabs.job}} #{{view.job.number}}
|
{{t repositories.tabs.job}} #{{number}}
|
||||||
</a>
|
</a>
|
||||||
{{/if}}
|
{{/with}}
|
||||||
</h5>
|
</h5>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user