Index: trunk/phase3/maintenance/language/messages.inc |
— | — | @@ -1569,6 +1569,7 @@ |
1570 | 1570 | 'protect-otherreason', |
1571 | 1571 | 'protect-otherreason-op', |
1572 | 1572 | 'protect-dropdown', |
| 1573 | + 'protect-edit-reasonlist', |
1573 | 1574 | 'restriction-type', |
1574 | 1575 | 'restriction-level', |
1575 | 1576 | 'minimum-size', |
Index: trunk/phase3/skins/monobook/rtl.css |
— | — | @@ -205,8 +205,9 @@ |
206 | 206 | float: right; |
207 | 207 | margin: 0 0 1em 3em; |
208 | 208 | } |
209 | | -/* Convenience links to edit block and delete reasons */ |
210 | | -p.mw-ipb-conveniencelinks, p.mw-filedelete-editreasons, p.mw-delete-editreasons { |
| 209 | +/* Convenience links to edit block, delete and protect reasons */ |
| 210 | +p.mw-ipb-conveniencelinks, p.mw-protect-editreasons, |
| 211 | +p.mw-filedelete-editreasons, p.mw-delete-editreasons { |
211 | 212 | float: left; |
212 | 213 | } |
213 | 214 | |
Index: trunk/phase3/skins/modern/rtl.css |
— | — | @@ -82,8 +82,9 @@ |
83 | 83 | float: right; |
84 | 84 | margin: 0 0 1em 3em; |
85 | 85 | } |
86 | | -/* Convenience links to edit block and delete reasons */ |
87 | | -p.mw-ipb-conveniencelinks, p.mw-filedelete-editreasons, p.mw-delete-editreasons { |
| 86 | +/* Convenience links to edit block, delete and protect reasons */ |
| 87 | +p.mw-ipb-conveniencelinks, p.mw-protect-editreasons, |
| 88 | +p.mw-filedelete-editreasons, p.mw-delete-editreasons { |
88 | 89 | float: left; |
89 | 90 | } |
90 | 91 | |
Index: trunk/phase3/skins/common/shared.css |
— | — | @@ -92,8 +92,9 @@ |
93 | 93 | .mw-hidden-cats-hidden { display: none; } |
94 | 94 | .catlinks-allhidden { display: none; } |
95 | 95 | |
96 | | -/* Convenience links to edit block and delete reasons */ |
97 | | -p.mw-ipb-conveniencelinks, p.mw-filedelete-editreasons, p.mw-delete-editreasons { |
| 96 | +/* Convenience links to edit block, delete and protect reasons */ |
| 97 | +p.mw-ipb-conveniencelinks, p.mw-protect-editreasons, |
| 98 | +p.mw-filedelete-editreasons, p.mw-delete-editreasons { |
98 | 99 | font-size: 90%; |
99 | 100 | float: right; |
100 | 101 | } |
Index: trunk/phase3/skins/common/common_rtl.css |
— | — | @@ -28,8 +28,9 @@ |
29 | 29 | div.tleft, div.floatleft { |
30 | 30 | clear: left; |
31 | 31 | } |
32 | | -/* Convenience links to edit block and delete reasons */ |
33 | | -p.mw-ipb-conveniencelinks, p.mw-filedelete-editreasons, p.mw-delete-editreasons { |
| 32 | +/* Convenience links to edit block, delete and protect reasons */ |
| 33 | +p.mw-ipb-conveniencelinks, p.mw-protect-editreasons, |
| 34 | +p.mw-filedelete-editreasons, p.mw-delete-editreasons { |
34 | 35 | float: left; |
35 | 36 | } |
36 | 37 | table.filehistory th { |
Index: trunk/phase3/skins/simple/rtl.css |
— | — | @@ -151,8 +151,9 @@ |
152 | 152 | float: right; |
153 | 153 | margin: 0 0 1em 3em; |
154 | 154 | } |
155 | | -/* Convenience links to edit block and delete reasons */ |
156 | | -p.mw-ipb-conveniencelinks, p.mw-filedelete-editreasons, p.mw-delete-editreasons { |
| 155 | +/* Convenience links to edit block, delete and protect reasons */ |
| 156 | +p.mw-ipb-conveniencelinks, p.mw-protect-editreasons, |
| 157 | +p.mw-filedelete-editreasons, p.mw-delete-editreasons { |
157 | 158 | float: left; |
158 | 159 | } |
159 | 160 | |
Index: trunk/phase3/includes/ProtectionForm.php |
— | — | @@ -436,6 +436,12 @@ |
437 | 437 | } |
438 | 438 | $out .= Xml::closeElement( 'fieldset' ); |
439 | 439 | |
| 440 | + if ( $wgUser->isAllowed( 'editinterface' ) ) { |
| 441 | + $linkTitle = Title::makeTitleSafe( NS_MEDIAWIKI, 'protect-dropdown' ); |
| 442 | + $link = $wgUser->getSkin()->Link ( $linkTitle, wfMsgHtml( 'protect-edit-reasonlist' ) ); |
| 443 | + $out .= '<p class="mw-protect-editreasons">' . $link . '</p>'; |
| 444 | + } |
| 445 | + |
440 | 446 | if ( !$this->disabled ) { |
441 | 447 | $out .= Xml::closeElement( 'form' ) . |
442 | 448 | $this->buildCleanupScript(); |
Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -1375,7 +1375,7 @@ |
1376 | 1376 | * to ensure that client-side caches don't keep obsolete copies of global |
1377 | 1377 | * styles. |
1378 | 1378 | */ |
1379 | | -$wgStyleVersion = '178'; |
| 1379 | +$wgStyleVersion = '179'; |
1380 | 1380 | |
1381 | 1381 | |
1382 | 1382 | # Server-side caching: |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -2346,6 +2346,7 @@ |
2347 | 2347 | ** Excessive spamming |
2348 | 2348 | ** Counter-productive edit warring |
2349 | 2349 | ** High traffic page', |
| 2350 | +'protect-edit-reasonlist' => 'Edit protection reasons', |
2350 | 2351 | 'restriction-type' => 'Permission:', |
2351 | 2352 | 'restriction-level' => 'Restriction level:', |
2352 | 2353 | 'minimum-size' => 'Min size', |