diff options
author | Byron Jones <glob@mozilla.com> | 2015-10-12 06:53:40 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-10-12 06:53:40 +0200 |
commit | c2364b357634e07c1b709c5cb120181ae3bc5e65 (patch) | |
tree | c47823a345d76a4112522905c8ce03bfa804f1e2 /extensions/BugModal/template/en/default/bug_modal/cc_list.html.tmpl | |
parent | 0c703a9d3b3ede6728b0fff7a979f48ce22adbb9 (diff) | |
download | bugzilla-c2364b357634e07c1b709c5cb120181ae3bc5e65.tar.gz bugzilla-c2364b357634e07c1b709c5cb120181ae3bc5e65.tar.xz |
Bug 1150358 - cannot remove other people from the cc list
Diffstat (limited to 'extensions/BugModal/template/en/default/bug_modal/cc_list.html.tmpl')
-rw-r--r-- | extensions/BugModal/template/en/default/bug_modal/cc_list.html.tmpl | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/extensions/BugModal/template/en/default/bug_modal/cc_list.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/cc_list.html.tmpl index 37f582e0e..ceb6e3b62 100644 --- a/extensions/BugModal/template/en/default/bug_modal/cc_list.html.tmpl +++ b/extensions/BugModal/template/en/default/bug_modal/cc_list.html.tmpl @@ -9,8 +9,20 @@ [% UNLESS cc_list.size; 'None'; - END; - FOREACH cc IN cc_list; - INCLUDE bug_modal/user.html.tmpl u=cc; + RETURN; END; %] + +[% FOREACH cc IN cc_list %] + <div class="cc-user" data-n="[% loop.count FILTER none %]"> + [% IF bug.user.canedit %] + <a href="#" id="ccr-[% loop.count FILTER none %]" class="cc-remove" + data-n="[% loop.count FILTER none %]" data-login="[% cc.login FILTER html %]" + title="Remove" style="visibility:hidden"> ✖ </a> + [% END %] + [% INCLUDE bug_modal/user.html.tmpl + u = cc + id = "ccu-" _ loop.count + %] + </div> +[% END %] |