From 37d35ac51efd7934be428b9de78066c814b4ebcc Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Sun, 15 Jul 2018 17:19:03 +0200 Subject: [PATCH] jobset view: jump back to the proper tab when displaying all failed jobsets When I press "n builds omitted" I get back to the first tab of a jobset. This is extremely counter-intuitive, instead this notice should link to the currently opened tab. --- src/root/jobset-eval.tt | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/root/jobset-eval.tt b/src/root/jobset-eval.tt index ec0aaf5b..979d9862 100644 --- a/src/root/jobset-eval.tt +++ b/src/root/jobset-eval.tt @@ -96,7 +96,7 @@ c.uri_for(c.controller('JobsetEval').action_for('view'), [% INCLUDE renderBuildListBody builds=builds.slice(0, (size > max ? max : size) - 1) hideProjectName=1 hideJobsetName=1 busy=0 %] [% IF size > max; params = c.req.params; params.full = 1 %] - ([% size - max %] more builds omitted) + ([% size - max %] more builds omitted) [% END %] [% INCLUDE renderBuildListFooter %] [% END %] @@ -104,19 +104,19 @@ c.uri_for(c.controller('JobsetEval').action_for('view'),
- [% INCLUDE renderSome builds=aborted %] + [% INCLUDE renderSome builds=aborted tabname="#tabs-aborted" %]
- [% INCLUDE renderSome builds=nowFail %] + [% INCLUDE renderSome builds=nowFail tabname="#tabs-now-fail" %]
- [% INCLUDE renderSome builds=nowSucceed %] + [% INCLUDE renderSome builds=nowSucceed tabname="#tabs-now-succeed" %]
- [% INCLUDE renderSome builds=new %] + [% INCLUDE renderSome builds=new tabname="#tabs-new" %]
@@ -133,22 +133,22 @@ c.uri_for(c.controller('JobsetEval').action_for('view'), [% END %] [% IF size > max; params = c.req.params; params.full = 1 %] - ([% size - max %] more jobs omitted) + ([% size - max %] more jobs omitted) [% END %]
- [% INCLUDE renderSome builds=stillFail %] + [% INCLUDE renderSome builds=stillFail tabname="#tabs-still-fail" %]
- [% INCLUDE renderSome builds=stillSucceed %] + [% INCLUDE renderSome builds=stillSucceed tabname="#tabs-still-succeed" %]
- [% INCLUDE renderSome builds=unfinished %] + [% INCLUDE renderSome builds=unfinished tabname="#tabs-unfinished" %]