From 1b2d1898e86b19f73b88ea0f2d52ce137446c564 Mon Sep 17 00:00:00 2001
From: "olav%bkor.dhs.org" <>
Date: Tue, 17 Oct 2006 02:22:57 +0000
Subject: Bug 314789: 'Leave as {CURRENT STATE}' should not appear unless there
is another radio button Patch By Olav Vitters r=timeless
a=myk
---
template/en/default/bug/knob.html.tmpl | 28 +++++++++++++++++++++-------
1 file changed, 21 insertions(+), 7 deletions(-)
(limited to 'template/en/default/bug/knob.html.tmpl')
diff --git a/template/en/default/bug/knob.html.tmpl b/template/en/default/bug/knob.html.tmpl
index 00ffcb053..02b5bed8a 100644
--- a/template/en/default/bug/knob.html.tmpl
+++ b/template/en/default/bug/knob.html.tmpl
@@ -25,16 +25,12 @@
[%# *** Knob *** %]
-
-
-
[% knum = 1 %]
+ [% initial_action_shown = 0 %]
[% IF bug.isunconfirmed && bug.user.canconfirm %]
+ [% PROCESS initial_action %]
-
[%# Common actions %]
+[% BLOCK initial_action %]
+ [%# Only show 'Leave as' action in combination with another knob %]
+ [% IF !initial_action_shown %]
+
+
+ Leave as [% status_descs.${bug.bug_status} FILTER html %]
+ [% get_resolution(bug.resolution) FILTER html %]
+
+
+ [% initial_action_shown = 1 %]
+ [% END %]
+[% END %]
+
[% BLOCK select_resolution %]