Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -93,8 +93,9 @@ |
94 | 94 | 'style' => array('review' => 3), |
95 | 95 | ); |
96 | 96 | |
97 | | -// For users of the monobook skin, a simplified UI |
98 | | -// will be used. Ratings will go by the toolbox. |
| 97 | +// For users of the monobook skin, a simplified UI will be used. |
| 98 | +// Ratings will go by the toolbox. The standard UI still shows |
| 99 | +// in edit mode and at stable versions. |
99 | 100 | $wgSimpleFlaggedRevsUI = true; |
100 | 101 | |
101 | 102 | # Lets some users access the review UI and set some flags |
— | — | @@ -844,10 +845,10 @@ |
845 | 846 | $tagClass = 'flaggedrevs_box1'; |
846 | 847 | // Construct some tagging |
847 | 848 | if( !$wgOut->isPrintable() ) { |
848 | | - $msg = $quality ? 'revreview-newest-quality' : 'revreview-newest-basic'; |
| 849 | + $msg = $quality ? 'revreview-quality' : 'revreview-basic'; |
849 | 850 | $box = parent::addTagRatings( $flags, true, "{$tagClass}a" ); |
850 | | - $box .= '<h5><a href="javascript:toggleRevRatings()">' . wfMsg('revreview-toggle') . '</a></h5>'; |
851 | | - $box .= '<span id="mwrevisionratings" style="display:none">' . |
| 851 | + $box .= '<h5><a id="mwrevisiontoggle" style="display:none;" href="javascript:toggleRevRatings()">' . wfMsg('revreview-toggle') . '</a></h5>'; |
| 852 | + $box .= '<span id="mwrevisionratings">' . |
852 | 853 | wfMsgExt($msg, array('parseinline'), $vis_id, $time, $revs_since) . |
853 | 854 | '</span>'; |
854 | 855 | } |
— | — | @@ -908,9 +909,9 @@ |
909 | 910 | $msg = $quality ? 'revreview-newest-quality' : 'revreview-newest-basic'; |
910 | 911 | $tag .= wfMsgExt($msg, array('parseinline'), $tfrev->fr_rev_id, $time, $revs_since); |
911 | 912 | # Hide clutter |
912 | | - $tag .= ' <a id="mwrevisiontoggle" style="display: none;" href="javascript:toggleRevRatings()">' . |
| 913 | + $tag .= ' <a id="mwrevisiontoggle" style="display:none;" href="javascript:toggleRevRatings()">' . |
913 | 914 | wfMsg('revreview-toggle') . '</a>'; |
914 | | - $tag .= '<span id="mwrevisionratings" style="display:none">' . |
| 915 | + $tag .= '<span id="mwrevisionratings">' . |
915 | 916 | wfMsg('revreview-oldrating') . parent::addTagRatings( $flags ) . |
916 | 917 | '</span>'; |
917 | 918 | } |
— | — | @@ -928,9 +929,9 @@ |
929 | 930 | } else { |
930 | 931 | $msg = $quality ? 'revreview-quality' : 'revreview-basic'; |
931 | 932 | $tag = wfMsgExt($msg, array('parseinline'), $vis_id, $time, $revs_since); |
932 | | - $tag .= ' <a id="mwrevisiontoggle" style="display: none;" href="javascript:toggleRevRatings()">' . |
| 933 | + $tag .= ' <a id="mwrevisiontoggle" style="display:none;" href="javascript:toggleRevRatings()">' . |
933 | 934 | wfMsg('revreview-toggle') . '</a>'; |
934 | | - $tag .= '<span id="mwrevisionratings" style="display:none">' . |
| 935 | + $tag .= '<span id="mwrevisionratings">' . |
935 | 936 | parent::addTagRatings( $flags ) . |
936 | 937 | '</span>'; |
937 | 938 | } |
— | — | @@ -1006,8 +1007,8 @@ |
1007 | 1008 | $msg = $this->isQuality( $flags ) ? 'revreview-newest-quality' : 'revreview-newest-basic'; |
1008 | 1009 | $tag = wfMsgExt($msg, array('parseinline'), $tfrev->fr_rev_id, $time, $revs_since ); |
1009 | 1010 | # Hide clutter |
1010 | | - $tag .= ' <a href="javascript:toggleRevRatings()">' . wfMsg('revreview-toggle') . '</a>'; |
1011 | | - $tag .= '<span id="mwrevisionratings" style="display:none">' . |
| 1011 | + $tag .= ' <a id="mwrevisiontoggle" style="display:none;" href="javascript:toggleRevRatings()">' . wfMsg('revreview-toggle') . '</a>'; |
| 1012 | + $tag .= '<span id="mwrevisionratings">' . |
1012 | 1013 | wfMsg('revreview-oldrating') . parent::addTagRatings( $flags ) . |
1013 | 1014 | '</span>'; |
1014 | 1015 | $wgOut->addHTML( '<div id="mwrevisiontag" class="flaggedrevs_notice plainlinks">' . $tag . '</div><br/>' ); |