You are reviewing an old revision should be a warningbox
authorjdlrobson <jdlrobson@gmail.com>
Mon, 9 Sep 2019 22:07:12 +0000 (15:07 -0700)
committerJdlrobson <jrobson@wikimedia.org>
Thu, 26 Sep 2019 00:02:08 +0000 (00:02 +0000)
It's warning you about the outdated nature of the content.

Given this message can be customised and thus styled, this will
have presentation issues on certain wikis (see screenshots).

If we go ahead with this change we'll probably want to give editors
a 2 weeks heads up via tech news.

https://phabricator.wikimedia.org/F30285062
https://phabricator.wikimedia.org/F30285074
https://phabricator.wikimedia.org/F30285084

Bug: T232415
Change-Id: I7dab00d5500937c03166398d92ea65a599bf3e22

includes/page/Article.php

index 4b37181..b6e366e 100644 (file)
@@ -1668,7 +1668,7 @@ class Article implements Page {
                }
 
                // the outer div is need for styling the revision info and nav in MobileFrontend
-               $outputPage->addSubtitle( "<div class=\"mw-revision\">" . $revisionInfo .
+               $outputPage->addSubtitle( "<div class=\"mw-revision warningbox\">" . $revisionInfo .
                        "<div id=\"mw-revision-nav\">" . $cdel .
                        $context->msg( 'revision-nav' )->rawParams(
                                $prevdiff, $prevlink, $lnk, $curdiff, $nextlink, $nextdiff