From bb5a73e5b97c4b73fc14c66afb939aac55c71990 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Thu, 20 Jan 2011 23:46:40 -0500 Subject: Bug 626658 - Add (take) link to bug edit page to allow quick assigning to the current user r/a=mkanat --- template/en/default/bug/edit.html.tmpl | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'template/en') diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index 744afeb2d..e8eaaad1f 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -465,6 +465,10 @@ [% INCLUDE global/user.html.tmpl who = bug.assigned_to %] (edit) + [% IF bug.assigned_to.id != user.id %] + (take) + [% END %]
@@ -485,6 +489,12 @@ 'bz_assignee_edit_action', 'assigned_to', '[% bug.assigned_to.login FILTER js %]' ); + hideEditableField('bz_assignee_edit_container', + 'bz_assignee_input', + 'bz_assignee_take_action', + 'assigned_to', + '[% bug.assigned_to.login FILTER js %]', + '[% user.login FILTER js %]' ); initDefaultCheckbox('assignee'); [% ELSE %] -- cgit v1.2.3-24-g4f1b