Index: trunk/phase3/includes/ChangesList.php |
— | — | @@ -593,7 +593,7 @@ |
594 | 594 | # Process current cache |
595 | 595 | $ret = $this->recentChangesBlock(); |
596 | 596 | $this->rc_cache = array(); |
597 | | - $ret .= Xml::element( 'h4', null, $date ); |
| 597 | + $ret .= Xml::element( 'h4', null, $date ) . "\n"; |
598 | 598 | $this->lastdate = $date; |
599 | 599 | } |
600 | 600 | |
— | — | @@ -736,7 +736,15 @@ |
737 | 737 | |
738 | 738 | wfProfileIn( __METHOD__ ); |
739 | 739 | |
740 | | - $r = '<table class="mw-enhanced-rc"><tr>'; |
| 740 | + # Add the namespace and title of the block as part of the class |
| 741 | + if ( $block[0]->mAttribs['rc_log_type'] ) { |
| 742 | + # Log entry |
| 743 | + $classes = Sanitizer::escapeClass( 'mw-enhanced-rc mw-changeslist-log-' . $block[0]->mAttribs['rc_log_type'] . '-' . $block[0]->mAttribs['rc_title'] ); |
| 744 | + } else { |
| 745 | + $classes = Sanitizer::escapeClass( 'mw-enhanced-rc mw-changeslist-ns' . $block[0]->mAttribs['rc_namespace'] . '-' . $block[0]->mAttribs['rc_title'] ); |
| 746 | + } |
| 747 | + $r = Html::openElement( 'table', array( 'class' => $classes ) ) . |
| 748 | + Html::openElement( 'tr' ); |
741 | 749 | |
742 | 750 | # Collate list of users |
743 | 751 | $userlinks = array(); |
— | — | @@ -1051,7 +1059,15 @@ |
1052 | 1060 | extract( $rcObj->mAttribs ); |
1053 | 1061 | $query['curid'] = $rc_cur_id; |
1054 | 1062 | |
1055 | | - $r = '<table class="mw-enhanced-rc"><tr>'; |
| 1063 | + if( $rc_log_type ) { |
| 1064 | + # Log entry |
| 1065 | + $classes = Sanitizer::escapeClass( 'mw-enhanced-rc mw-changeslist-log-' . $rc_log_type . '-' . $rcObj->mAttribs['rc_title'] ); |
| 1066 | + } else { |
| 1067 | + $classes = Sanitizer::escapeClass( 'mw-enhanced-rc mw-changeslist-ns' . $rcObj->mAttribs['rc_namespace'] . '-' . $rcObj->mAttribs['rc_title'] ); |
| 1068 | + } |
| 1069 | + $r = Html::openElement( 'table', array( 'class' => $classes ) ) . |
| 1070 | + Html::openElement( 'tr' ); |
| 1071 | + |
1056 | 1072 | $r .= '<td class="mw-enhanced-rc">' . $this->spacerArrow() . ' '; |
1057 | 1073 | # Flag and Timestamp |
1058 | 1074 | if( $rc_type == RC_MOVE || $rc_type == RC_MOVE_OVER_REDIRECT ) { |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -199,6 +199,8 @@ |
200 | 200 | * (bug 20627) Installer should be in languages other than English |
201 | 201 | * Support for metadata in SVG files (title, description). |
202 | 202 | * Special:Search: Add CSS classes to 'none found' and 'create link' messages |
| 203 | +* Add CSS classes (including namespace and pagename) to the enhanced recent |
| 204 | + changes/watchlist entries |
203 | 205 | |
204 | 206 | === Bug fixes in 1.17 === |
205 | 207 | * (bug 17560) Half-broken deletion moved image files to deletion archive |