Special:ListGroupRights: Display the legend at the top
authorMatmaRex <matma.rex@gmail.com>
Fri, 19 Jul 2013 18:28:36 +0000 (20:28 +0200)
committerMatmaRex <matma.rex@gmail.com>
Fri, 19 Jul 2013 18:28:36 +0000 (20:28 +0200)
Previously it was displayed at the bottom and was rather hard to notice.

Also prefix the legend with "Legend:" to make the interface clearer.

Change-Id: I62f3dfb311ae648180363f36d60a5f400ea4f077

includes/specials/SpecialListgrouprights.php
languages/messages/MessagesEn.php

index 57bfea5..82a4f70 100644 (file)
@@ -50,6 +50,8 @@ class SpecialListGroupRights extends SpecialPage {
                $out = $this->getOutput();
                $out->addModuleStyles( 'mediawiki.special' );
 
+               $out->wrapWikiMsg( "<div class=\"mw-listgrouprights-key\">\n$1\n</div>", 'listgrouprights-key' );
+
                $out->addHTML(
                        Xml::openElement( 'table', array( 'class' => 'wikitable mw-listgrouprights-table' ) ) .
                                '<tr>' .
@@ -129,10 +131,7 @@ class SpecialListGroupRights extends SpecialPage {
                                '
                        ) );
                }
-               $out->addHTML(
-                       Xml::closeElement( 'table' ) . "\n<br /><hr />\n"
-               );
-               $out->wrapWikiMsg( "<div class=\"mw-listgrouprights-key\">\n$1\n</div>", 'listgrouprights-key' );
+               $out->addHTML( Xml::closeElement( 'table' ) );
        }
 
        /**
index b8a927c..c68de09 100644 (file)
@@ -2867,7 +2867,8 @@ Supported {{PLURAL:$2|protocol|protocols}}: <code>$1</code> (defaults to http://
 'listgrouprights'                      => 'User group rights',
 'listgrouprights-summary'              => 'The following is a list of user groups defined on this wiki, with their associated access rights.
 There may be [[{{MediaWiki:Listgrouprights-helppage}}|additional information]] about individual rights.',
-'listgrouprights-key'                  => '* <span class="listgrouprights-granted">Granted right</span>
+'listgrouprights-key'                  => 'Legend:
+* <span class="listgrouprights-granted">Granted right</span>
 * <span class="listgrouprights-revoked">Revoked right</span>',
 'listgrouprights-group'                => 'Group',
 'listgrouprights-rights'               => 'Rights',