From: Kohei Yoshino Date: Wed, 3 Apr 2019 21:38:22 +0000 (-0400) Subject: Bug 1344427 - Display "nn people including you" if current user is cc'ed on a bug. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ff961740eb99a74156b7497219d3a791607265a3;p=thirdparty%2Fbugzilla.git Bug 1344427 - Display "nn people including you" if current user is cc'ed on a bug. --- diff --git a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl index 12d741ff0..9ec843360 100644 --- a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl +++ b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl @@ -784,7 +784,7 @@ IF bug.cc.size == 1; is_cced ? "Just you" : "1 person"; ELSE; - bug.cc.size _ " people"; + bug.cc.size _ " people" _ (is_cced ? " including you" : ""); END; %] diff --git a/extensions/BugModal/web/bug_modal.js b/extensions/BugModal/web/bug_modal.js index a3610dbed..3fe9cdcc1 100644 --- a/extensions/BugModal/web/bug_modal.js +++ b/extensions/BugModal/web/bug_modal.js @@ -677,7 +677,7 @@ $(function() { $('#cc-summary').text(is_cced ? 'Just you' : '1 person'); } else { - $('#cc-summary').text(cc_count + ' people'); + $('#cc-summary').text(`${cc_count} people${is_cced ? ' including you' : ''}`); } // clear/update user list