Index: trunk/extensions/FlaggedRevs/FlaggedRevsXML.php |
— | — | @@ -298,8 +298,8 @@ |
299 | 299 | $box .= '<div style="position:relative;">'; // for rel-absolute child div |
300 | 300 | $box .= Xml::openElement( 'div', |
301 | 301 | array( |
302 | | - 'id' => 'mw-fr-revisionratings', |
303 | | - 'class' => 'flaggedrevs_short_details', |
| 302 | + 'id' => 'mw-fr-revisiondetails', |
| 303 | + 'class' => 'flaggedrevs_short_details', |
304 | 304 | ) |
305 | 305 | ); |
306 | 306 | $box .= $html; // details text |
Index: trunk/extensions/FlaggedRevs/client/flaggedrevs.css |
— | — | @@ -192,6 +192,7 @@ |
193 | 193 | font-family: monospace; |
194 | 194 | font-weight: bold; |
195 | 195 | cursor: pointer; |
| 196 | + margin: 0 .3em 0 .3em; |
196 | 197 | } |
197 | 198 | |
198 | 199 | a.fr-toggle-text { |
Index: trunk/extensions/FlaggedRevs/client/flaggedrevs.js |
— | — | @@ -19,7 +19,7 @@ |
20 | 20 | var toggle = document.getElementById('mw-fr-revisiontoggle'); |
21 | 21 | if( toggle ) { |
22 | 22 | toggle.style.display = 'inline'; |
23 | | - var ratings = document.getElementById('mw-fr-revisionratings'); |
| 23 | + var ratings = document.getElementById('mw-fr-revisiondetails'); |
24 | 24 | if( ratings ) { |
25 | 25 | ratings.style.display = 'none'; |
26 | 26 | } |
— | — | @@ -46,7 +46,7 @@ |
47 | 47 | |
48 | 48 | /* Expands flag info box details */ |
49 | 49 | 'showBoxDetails': function() { |
50 | | - var ratings = document.getElementById('mw-fr-revisionratings'); |
| 50 | + var ratings = document.getElementById('mw-fr-revisiondetails'); |
51 | 51 | if( !ratings ) return; |
52 | 52 | var toggle = document.getElementById('mw-fr-revisiontoggle'); |
53 | 53 | if( !toggle ) return; |
— | — | @@ -56,7 +56,7 @@ |
57 | 57 | |
58 | 58 | /* Collapses flag info box details */ |
59 | 59 | 'hideBoxDetails': function( event ) { |
60 | | - var ratings = document.getElementById('mw-fr-revisionratings'); |
| 60 | + var ratings = document.getElementById('mw-fr-revisiondetails'); |
61 | 61 | if( !ratings ) return; |
62 | 62 | var toggle = document.getElementById('mw-fr-revisiontoggle'); |
63 | 63 | if( !toggle ) return; |
— | — | @@ -66,7 +66,7 @@ |
67 | 67 | |
68 | 68 | /* Toggles flag info box details */ |
69 | 69 | 'toggleBoxDetails': function() { |
70 | | - var ratings = document.getElementById('mw-fr-revisionratings'); |
| 70 | + var ratings = document.getElementById('mw-fr-revisiondetails'); |
71 | 71 | if( !ratings ) return; |
72 | 72 | // Collapsed -> expand |
73 | 73 | if( ratings.style.display == 'none' ) { |
Index: trunk/extensions/FlaggedRevs/FlaggedArticleView.php |
— | — | @@ -159,10 +159,10 @@ |
160 | 160 | $tag = wfMsgExt( $msg, array( 'parseinline' ), $frev->getRevId(), $time ); |
161 | 161 | # Hide clutter |
162 | 162 | if ( !FlaggedRevs::useSimpleUI() && !empty( $flags ) ) { |
163 | | - $tag .= " " . FlaggedRevsXML::ratingToggle() . |
164 | | - "<span id='mw-fr-revisionratings' style='display:block;'><br />" . |
| 163 | + $tag .= FlaggedRevsXML::ratingToggle() . |
| 164 | + "<div id='mw-fr-revisiondetails' style='display:block;'>" . |
165 | 165 | wfMsgHtml( 'revreview-oldrating' ) . |
166 | | - FlaggedRevsXML::addTagRatings( $flags ) . '</span>'; |
| 166 | + FlaggedRevsXML::addTagRatings( $flags ) . '</div>'; |
167 | 167 | } |
168 | 168 | $css = 'flaggedrevs_notice plainlinks noprint'; |
169 | 169 | $tag = "<div id='mw-fr-revisiontag-old' class='$css'>$tag</div>"; |
— | — | @@ -487,14 +487,14 @@ |
488 | 488 | $msg = $quality |
489 | 489 | ? 'revreview-quality-old' |
490 | 490 | : 'revreview-basic-old'; |
491 | | - $tag = $prot . $icon . |
492 | | - wfMsgExt( $msg, array( 'parseinline' ), $frev->getRevId(), $time ); |
| 491 | + $tag = $prot . $icon; |
| 492 | + $tag .= wfMsgExt( $msg, 'parseinline', $frev->getRevId(), $time ); |
493 | 493 | # Hide clutter |
494 | 494 | if ( !empty( $flags ) ) { |
495 | | - $tag .= " " . FlaggedRevsXML::ratingToggle(); |
496 | | - $tag .= "<span id='mw-fr-revisionratings' style='display:block;'><br />" . |
| 495 | + $tag .= FlaggedRevsXML::ratingToggle(); |
| 496 | + $tag .= "<div id='mw-fr-revisiondetails' style='display:block;'>" . |
497 | 497 | wfMsgHtml( 'revreview-oldrating' ) . |
498 | | - FlaggedRevsXML::addTagRatings( $flags ) . '</span>'; |
| 498 | + FlaggedRevsXML::addTagRatings( $flags ) . '</div>'; |
499 | 499 | } |
500 | 500 | } |
501 | 501 | } |
— | — | @@ -574,12 +574,12 @@ |
575 | 575 | # uses messages 'revreview-quality-i', 'revreview-basic-i' |
576 | 576 | $msg .= '-i'; |
577 | 577 | } |
578 | | - $tag = $prot . $icon . |
579 | | - wfMsgExt( $msg, array( 'parseinline' ), $srev->getRevId(), $time, $revsSince ); |
| 578 | + $tag = $prot . $icon; |
| 579 | + $tag .= wfMsgExt( $msg, 'parseinline', $srev->getRevId(), $time, $revsSince ); |
580 | 580 | if ( !empty( $flags ) ) { |
581 | | - $tag .= " " . FlaggedRevsXML::ratingToggle(); |
582 | | - $tag .= "<span id='mw-fr-revisionratings' style='display:block;'><br />" . |
583 | | - FlaggedRevsXML::addTagRatings( $flags ) . '</span>'; |
| 581 | + $tag .= FlaggedRevsXML::ratingToggle(); |
| 582 | + $tag .= "<div id='mw-fr-revisiondetails' style='display:block;'>" . |
| 583 | + FlaggedRevsXML::addTagRatings( $flags ) . '</div>'; |
584 | 584 | } |
585 | 585 | } |
586 | 586 | } |