Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -253,7 +253,7 @@ |
254 | 254 | $wgAvailableRights[] = 'movestable'; |
255 | 255 | |
256 | 256 | # Bump this number every time you change flaggedrevs.css/flaggedrevs.js |
257 | | -$wgFlaggedRevStyleVersion = 54; |
| 257 | +$wgFlaggedRevStyleVersion = 55; |
258 | 258 | |
259 | 259 | $wgExtensionFunctions[] = 'efLoadFlaggedRevs'; |
260 | 260 | |
Index: trunk/extensions/FlaggedRevs/flaggedrevs.css |
— | — | @@ -274,6 +274,10 @@ |
275 | 275 | background-color: #faebd7; |
276 | 276 | } |
277 | 277 | |
| 278 | +.fr-under-review { |
| 279 | + background-color: yellow; |
| 280 | +} |
| 281 | + |
278 | 282 | /* Review form */ |
279 | 283 | .flaggedrevs_reviewform { |
280 | 284 | background-color: #f9f9f9; |
— | — | @@ -336,6 +340,7 @@ |
337 | 341 | display: none; |
338 | 342 | } |
339 | 343 | |
| 344 | +/* Reader feedback form */ |
340 | 345 | .fr_reader_feedback_graph { |
341 | 346 | width: 100%; |
342 | 347 | overflow: auto; |
Index: trunk/extensions/FlaggedRevs/specialpages/OldReviewedPages_body.php |
— | — | @@ -176,17 +176,22 @@ |
177 | 177 | |
178 | 178 | $title = Title::makeTitle( $row->page_namespace, $row->page_title ); |
179 | 179 | $link = $this->skin->makeKnownLinkObj( $title ); |
180 | | - $css = $stxt = $review = ''; |
| 180 | + $css = $stxt = $review = $quality = $underReview = ''; |
181 | 181 | $stxt = ChangesList::showCharacterDifference( $row->rev_len, $row->page_len ); |
182 | 182 | $review = $this->skin->makeKnownLinkObj( $title, wfMsg('oldreviewed-diff'), |
183 | 183 | "diff=cur&oldid={$row->fp_stable}&diffonly=0" ); |
184 | | - $quality = $row->fp_quality ? wfMsgHtml('oldreviewedpages-quality') : wfMsgHtml('oldreviewedpages-stable'); |
| 184 | + # Show quality level if there are several |
| 185 | + if( FlaggedRevs::qualityVersions() ) { |
| 186 | + $quality = $row->fp_quality ? |
| 187 | + wfMsgHtml('oldreviewedpages-quality') : wfMsgHtml('oldreviewedpages-stable'); |
| 188 | + $quality = " <b>[{$quality}]</b>"; |
| 189 | + } |
185 | 190 | # Is anybody watching? |
186 | 191 | if( !$this->including() && $wgUser->isAllowed( 'unreviewedpages' ) ) { |
187 | 192 | $uw = UnreviewedPages::usersWatching( $title ); |
188 | 193 | $watching = $uw ? |
189 | 194 | wfMsgExt('oldreviewedpages-watched','parsemag',$uw,$uw) : wfMsgHtml('oldreviewedpages-unwatched'); |
190 | | - $watching = ' '.$watching; |
| 195 | + $watching = " {$watching}"; |
191 | 196 | } else { |
192 | 197 | $uw = -1; |
193 | 198 | $watching = ''; // leave out data |
— | — | @@ -215,10 +220,12 @@ |
216 | 221 | $age = ""; // wtf? |
217 | 222 | } |
218 | 223 | $key = wfMemcKey( 'stableDiffs', 'underReview', $row->fp_stable, $row->page_latest ); |
219 | | - $val = $wgMemc->get( $key ); |
220 | | - $underReview = $val ? wfMsgHtml('oldreviewedpages-viewing') : ''; |
| 224 | + # Show if a user is looking at this page |
| 225 | + if( ($val = $wgMemc->get($key)) ) { |
| 226 | + $underReview = " <b class='fr-under-review'>".wfMsgHtml('oldreviewedpages-viewing').'</b>'; |
| 227 | + } |
221 | 228 | |
222 | | - return( "<li{$css}>{$link} {$stxt} ({$review}) <i>{$age}</i> <b>[{$quality}]</b>{$watching} <b>{$underReview}</b></li>" ); |
| 229 | + return( "<li{$css}>{$link} {$stxt} ({$review}) <i>{$age}</i>{$quality}{$watching}{$underReview}</li>" ); |
223 | 230 | } |
224 | 231 | |
225 | 232 | /** |