Index: trunk/phase3/includes/specials/SpecialNewpages.php |
— | — | @@ -267,7 +267,9 @@ |
268 | 268 | $dm = $wgContLang->getDirMark(); |
269 | 269 | |
270 | 270 | $title = Title::makeTitleSafe( $result->rc_namespace, $result->rc_title ); |
271 | | - $time = htmlspecialchars( $wgLang->timeAndDate( $result->rc_timestamp, true ) ); |
| 271 | + $time = Html::rawElement( 'span', array( 'class' => 'mw-newpages-time' ), |
| 272 | + htmlspecialchars( $wgLang->timeAndDate( $result->rc_timestamp, true ) ) |
| 273 | + ); |
272 | 274 | |
273 | 275 | $query = array( 'redirect' => 'no' ); |
274 | 276 | |
— | — | @@ -277,17 +279,21 @@ |
278 | 280 | $plink = $this->skin->linkKnown( |
279 | 281 | $title, |
280 | 282 | null, |
281 | | - array(), |
| 283 | + array( 'class' => 'mw-newpages-pagename' ), |
282 | 284 | $query |
283 | 285 | ); |
284 | | - $hist = $this->skin->linkKnown( |
| 286 | + $histLink = $this->skin->linkKnown( |
285 | 287 | $title, |
286 | 288 | wfMsgHtml( 'hist' ), |
287 | 289 | array(), |
288 | 290 | array( 'action' => 'history' ) |
289 | 291 | ); |
290 | | - $length = wfMsgExt( 'nbytes', array( 'parsemag', 'escape' ), |
291 | | - $wgLang->formatNum( $result->length ) ); |
| 292 | + $hist = Html::rawElement( 'span', array( 'class' => 'mw-newpages-history' ), wfMsg( 'parentheses', $histLink ) ); |
| 293 | + |
| 294 | + $length = Html::rawElement( 'span', array( 'class' => 'mw-newpages-length' ), |
| 295 | + '[' . wfMsgExt( 'nbytes', array( 'parsemag', 'escape' ), $wgLang->formatNum( $result->length ) ) . |
| 296 | + ']' |
| 297 | + ); |
292 | 298 | $ulink = $this->skin->userLink( $result->rc_user, $result->rc_user_text ) . ' ' . |
293 | 299 | $this->skin->userToolLinks( $result->rc_user, $result->rc_user_text ); |
294 | 300 | $comment = $this->skin->commentBlock( $result->rc_comment ); |
— | — | @@ -305,7 +311,7 @@ |
306 | 312 | |
307 | 313 | $css = count($classes) ? ' class="'.implode( " ", $classes).'"' : ''; |
308 | 314 | |
309 | | - return "<li{$css}>{$time} {$dm}{$plink} ({$hist}) {$dm}[{$length}] {$dm}{$ulink} {$comment} {$tagDisplay}</li>\n"; |
| 315 | + return "<li{$css}>{$time} {$dm}{$plink} {$hist} {$dm}{$length} {$dm}{$ulink} {$comment} {$tagDisplay}</li>\n"; |
310 | 316 | } |
311 | 317 | |
312 | 318 | /** |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -142,6 +142,7 @@ |
143 | 143 | * The HTML ID's generated for sections are now much prettier when they contain |
144 | 144 | punctuation or non-English letters, so a section named "Hello?" will now |
145 | 145 | result in a URL ending in "#Hello?" rather than "#Hello.3F". |
| 146 | +* (bug 8140) Add dedicated CSS classes to Special:Newpages elements |
146 | 147 | |
147 | 148 | === Bug fixes in 1.17 === |
148 | 149 | * (bug 17560) Half-broken deletion moved image files to deletion archive |