]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1344427 - Display "nn people including you" if current user is cc'ed on a bug.
authorKohei Yoshino <kohei.yoshino@gmail.com>
Wed, 3 Apr 2019 21:38:22 +0000 (17:38 -0400)
committerGitHub <noreply@github.com>
Wed, 3 Apr 2019 21:38:22 +0000 (17:38 -0400)
extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl
extensions/BugModal/web/bug_modal.js

index 12d741ff05c275d1fa864282cbf4240542fbd39e..9ec84336038ecbccf0e9c6121b69855c51dc93c1 100644 (file)
               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;
             %]
           </span>
index a3610dbed766f84b05e1d6f1e79888f8e837a264..3fe9cdcc1d216b82479ced3f4f94fa3dce8c8570 100644 (file)
@@ -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