summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorDavid Lawrence <dlawrence@mozilla.com>2011-01-21 05:46:40 +0100
committerDavid Lawrence <dlawrence@mozilla.com>2011-01-21 05:46:40 +0100
commitbb5a73e5b97c4b73fc14c66afb939aac55c71990 (patch)
tree98d901324f21193b2fbc7a4b60cc7c49645e98bc /template
parentfc329ec4b1f0ad1adfe73f8f5adeca308f296977 (diff)
downloadbugzilla-bb5a73e5b97c4b73fc14c66afb939aac55c71990.tar.gz
bugzilla-bb5a73e5b97c4b73fc14c66afb939aac55c71990.tar.xz
Bug 626658 - Add (take) link to bug edit page to allow quick assigning to the current user
r/a=mkanat
Diffstat (limited to 'template')
-rw-r--r--template/en/default/bug/edit.html.tmpl10
1 files changed, 10 insertions, 0 deletions
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 @@
<span>
[% INCLUDE global/user.html.tmpl who = bug.assigned_to %]
(<a href="#" id="bz_assignee_edit_action">edit</a>)
+ [% IF bug.assigned_to.id != user.id %]
+ (<a title="Reassign to yourself"
+ href="#" id="bz_assignee_take_action">take</a>)
+ [% END %]
</span>
</div>
<div id="bz_assignee_input">
@@ -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');
</script>
[% ELSE %]