Index: trunk/extensions/Drafts/Drafts.classes.php |
— | — | @@ -276,9 +276,14 @@ |
277 | 277 | // Output HTML for list of drafts |
278 | 278 | $drafts = Draft::getDrafts( $title, $user ); |
279 | 279 | if ( count( $drafts ) > 0 ) { |
| 280 | + global $egDraftsLifeSpan; |
| 281 | + |
280 | 282 | // Internationalization |
281 | 283 | wfLoadExtensionMessages( 'Drafts' ); |
282 | | - |
| 284 | + |
| 285 | + // Add a special page summary |
| 286 | + $wgOut->wrapWikiMsg( '<div class="mw-drafts-summary">$1</div>', array( 'drafts-view-summary', $wgLang->formatNum( $egDraftsLifeSpan ) ) ); |
| 287 | + |
283 | 288 | // Build XML |
284 | 289 | $wgOut->addHTML( |
285 | 290 | Xml::openElement( 'table', |
Index: trunk/extensions/Drafts/Drafts.i18n.php |
— | — | @@ -15,6 +15,8 @@ |
16 | 16 | 'drafts' => 'Drafts', |
17 | 17 | 'drafts-desc' => 'Adds the ability to save [[Special:Drafts|draft]] versions of a page on the server', |
18 | 18 | 'drafts-view' => 'ViewDraft', |
| 19 | + 'drafts-view-summary' => 'This special page shows a list of all existing drafts. |
| 20 | +Unused drafts will be discarded after {{PLURAL:$1|$1 day|$1 days}} automatically.', |
19 | 21 | 'drafts-view-article' => 'Page', |
20 | 22 | 'drafts-view-existing' => 'Existing drafts', |
21 | 23 | 'drafts-view-saved' => 'Saved', |
Index: trunk/extensions/Drafts/Drafts.php |
— | — | @@ -58,6 +58,7 @@ |
59 | 59 | |
60 | 60 | // Register the Drafts special page |
61 | 61 | $wgSpecialPages['Drafts'] = 'DraftsPage'; |
| 62 | +$wgSpecialPageGroups['Drafts'] = 'pagetools'; |
62 | 63 | $wgAutoloadClasses['DraftsPage'] = $dir . 'Drafts.pages.php'; |
63 | 64 | |
64 | 65 | // Register save interception to detect non-javascript draft saving |