Index: branches/RL2/extensions/Gadgets/SpecialGadgets.php |
— | — | @@ -359,8 +359,10 @@ |
360 | 360 | // Translation subpages of module messages |
361 | 361 | // @todo |
362 | 362 | |
363 | | - // Get prefixed strings separated by new lines |
| 363 | + // Build line-break separated string of prefixed titles |
364 | 364 | $exportList = ''; |
| 365 | + // Build html for unordered list with links to the titles |
| 366 | + $exportDisplayList = '<ul>'; |
365 | 367 | foreach ( $exportTitles as $exportTitle ) { |
366 | 368 | // Make sure it's not null (for inexisting or invalid title) |
367 | 369 | // and addionally check exists() to avoid exporting messages |
— | — | @@ -369,8 +371,10 @@ |
370 | 372 | // (which we don't want to export) |
371 | 373 | if ( is_object( $exportTitle ) && $exportTitle->exists() ) { |
372 | 374 | $exportList .= $exportTitle->getPrefixedDBkey() . "\n"; |
| 375 | + $exportDisplayList .= '<li>'. Linker::link( $exportTitle ) . '</li>'; |
373 | 376 | } |
374 | 377 | } |
| 378 | + $exportDisplayList .= '</ul>'; |
375 | 379 | |
376 | 380 | global $wgScript; |
377 | 381 | $form = |
— | — | @@ -389,6 +393,7 @@ |
390 | 394 | ) |
391 | 395 | ->escaped() |
392 | 396 | . '</p>' |
| 397 | + . $exportDisplayList |
393 | 398 | . Html::hidden( 'title', SpecialPage::getTitleFor( 'Export' )->getPrefixedDBKey() ) |
394 | 399 | . Html::hidden( 'pages', $exportList ) |
395 | 400 | . Html::hidden( 'wpDownload', '1' ) |
Index: branches/RL2/extensions/Gadgets/modules/ext.gadgets.prejs.css |
— | — | @@ -58,3 +58,8 @@ |
59 | 59 | .mw-gadgets-gadgetlinks a { |
60 | 60 | margin: 0 9px; |
61 | 61 | } |
| 62 | + |
| 63 | +/* Export */ |
| 64 | +.mw-gadgets-exportform fieldset { |
| 65 | + max-width: 50%; |
| 66 | +} |