Merge "Differentiate comments with and without brackets"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 22 Nov 2018 21:13:30 +0000 (21:13 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 22 Nov 2018 21:13:30 +0000 (21:13 +0000)
includes/Linker.php
resources/src/mediawiki.special.changeslist.less

index b0ba43f..0ecd744 100644 (file)
@@ -1451,8 +1451,11 @@ class Linker {
                        $formatted = self::formatComment( $comment, $title, $local, $wikiId );
                        if ( $useParentheses ) {
                                $formatted = wfMessage( 'parentheses' )->rawParams( $formatted )->escaped();
+                               $classNames = 'comment';
+                       } else {
+                               $classNames = 'comment comment--without-parentheses';
                        }
-                       return " <span class=\"comment\">$formatted</span>";
+                       return " <span class=\"$classNames\">$formatted</span>";
                }
        }
 
index 67eece4..c87a8a1 100644 (file)
@@ -67,7 +67,7 @@
        content: '. .';
 }
 
-.comment,
+.comment--without-parentheses,
 .mw-changeslist-links,
 .mw-diff-bytes,
 .mw-tag-markers,