Index: trunk/extensions/FlaggedRevs/specialpages/UnreviewedPages_body.php |
— | — | @@ -83,7 +83,7 @@ |
84 | 84 | $title = Title::makeTitle( $row->page_namespace, $row->page_title ); |
85 | 85 | $link = $this->skin->makeKnownLinkObj( $title, null, 'redirect=no&forreview=1' ); |
86 | 86 | $hist = $this->skin->makeKnownLinkObj( $title, wfMsgHtml('hist'), 'action=history&forreview=1' ); |
87 | | - $css = $stxt = $review = ''; |
| 87 | + $css = $stxt = $review = $underReview = ''; |
88 | 88 | if( !is_null($size = $row->page_len) ) { |
89 | 89 | $stxt = ($size == 0) |
90 | 90 | ? wfMsgHtml('historyempty') |
— | — | @@ -103,9 +103,12 @@ |
104 | 104 | $pageId = isset($row->page_id) ? $row->page_id : $row->qc_value; |
105 | 105 | $key = wfMemcKey( 'unreviewedPages', 'underReview', $pageId ); |
106 | 106 | $val = $wgMemc->get( $key ); |
107 | | - $underReview = $val ? wfMsgHtml('unreviewed-viewing') : ''; |
| 107 | + # Show if a user is looking at this page |
| 108 | + if( ($val = $wgMemc->get($key)) ) { |
| 109 | + $underReview = " <b class='fr-under-review'>".wfMsgHtml('unreviewed-viewing').'</b>'; |
| 110 | + } |
108 | 111 | |
109 | | - return( "<li{$css}>{$link} {$stxt} ({$hist}) {$review}{$watching} <b>{$underReview}</b></li>" ); |
| 112 | + return( "<li{$css}>{$link} {$stxt} ({$hist}) {$review}{$watching}{$underReview}</li>" ); |
110 | 113 | } |
111 | 114 | |
112 | 115 | /** |