From 9f7796a023e2c37caec9f78a865bdab410d81d7d Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Thu, 13 Dec 2012 01:44:04 +0100 Subject: [PATCH] Use #with helper for job and builds link on tabs Thanks to that, id will be refreshed when the build changes. --- assets/scripts/app/templates/repos/show/tabs.hbs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/assets/scripts/app/templates/repos/show/tabs.hbs b/assets/scripts/app/templates/repos/show/tabs.hbs index a0649cda..03021bc4 100644 --- a/assets/scripts/app/templates/repos/show/tabs.hbs +++ b/assets/scripts/app/templates/repos/show/tabs.hbs @@ -37,20 +37,20 @@
  • - {{#if view.build.id}} - - {{t repositories.tabs.build}} #{{view.build.number}} + {{#with view.build}} + + {{t repositories.tabs.build}} #{{number}} - {{/if}} + {{/with}}
  • - {{#if view.job.id}} - - {{t repositories.tabs.job}} #{{view.job.number}} + {{#with view.job}} + + {{t repositories.tabs.job}} #{{number}} - {{/if}} + {{/with}}