Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -120,6 +120,9 @@ |
121 | 121 | $wgFlaggedRevsAutopromote = array('editor' => array('days' => 60, |
122 | 122 | 'edits' => 1000, |
123 | 123 | 'email' => true) ); |
| 124 | + |
| 125 | +# What icons to display |
| 126 | + |
124 | 127 | # Settings below this point should probably not be modified |
125 | 128 | ############ |
126 | 129 | |
— | — | @@ -398,10 +401,19 @@ |
399 | 402 | } |
400 | 403 | |
401 | 404 | public function addTagRatings( $flags ) { |
| 405 | + global $wgFlaggedRevTags; |
402 | 406 | $tag = "<p>"; |
403 | 407 | foreach ( $this->dimensions as $quality => $value ) { |
404 | 408 | $value = wfMsgHtml('revreview-' . $this->dimensions[$quality][$flags[$quality]]); |
405 | | - $tag .= " <strong>" . wfMsgHtml("revreview-$quality") . "</strong>: $value \n"; |
| 409 | + $level = $flags[$quality]; |
| 410 | + $minlevel = $wgFlaggedRevTags[$quality]; |
| 411 | + if ($level >= $minlevel) |
| 412 | + $classmarker = 2; |
| 413 | + elseif ($level > 0) |
| 414 | + $classmarker = 1; |
| 415 | + else |
| 416 | + $classmarker = 0; |
| 417 | + $tag .= " <strong>" . wfMsgHtml("revreview-$quality") . "</strong>: <span class='fr-marker-$classmarker'><span class='fr-text-value'>$value </span> </span>\n"; |
406 | 418 | } |
407 | 419 | $tag .= '</p>'; |
408 | 420 | return $tag; |
— | — | @@ -972,7 +984,9 @@ |
973 | 985 | } |
974 | 986 | } |
975 | 987 | } |
| 988 | + |
976 | 989 | |
| 990 | + |
977 | 991 | } |
978 | 992 | |
979 | 993 | $flaggedrevs = new FlaggedRevs(); |
— | — | @@ -985,4 +999,4 @@ |
986 | 1000 | $wgHooks['PageHistoryLineEnding'][] = array($flaggedarticle, 'addToHistLine'); |
987 | 1001 | $wgHooks['SkinTemplateBuildNavUrlsNav_urlsAfterPermalink'][] = array($flaggedarticle, 'setPermaLink'); |
988 | 1002 | $wgHooks['ArticleSaveComplete'][] = array($flaggedrevs, 'autoPromoteUser'); |
989 | | -?> |
\ No newline at end of file |
| 1003 | +?> |
Index: trunk/extensions/FlaggedRevs/flaggedrevs.css |
— | — | @@ -44,4 +44,26 @@ |
45 | 45 | margin: 0 0 1.4em 1em;
|
46 | 46 | color: #7d7d7d;
|
47 | 47 | width: auto;
|
48 | | -} |
\ No newline at end of file |
| 48 | +}
|
| 49 | +
|
| 50 | +/*.fr-marker-1 span {display: none};*/
|
| 51 | +.fr-marker-1 {
|
| 52 | + background-image: url(../FlaggedRevs/img/boxY.png);
|
| 53 | + background-repeat: no-repeat;
|
| 54 | + min-width: 16px;
|
| 55 | + width: 16px;
|
| 56 | + height: 16px
|
| 57 | + min-height: 16px;
|
| 58 | + padding: 3px 16px 0px 0px;
|
| 59 | +}
|
| 60 | +
|
| 61 | +.fr-text-value {
|
| 62 | + font-size:0px;
|
| 63 | +}
|
| 64 | +
|
| 65 | +
|
| 66 | +.fr-marker-2 {
|
| 67 | + background-image: url(../FlaggedRevs/img/boxC.png);
|
| 68 | + background-repeat: no-repeat;
|
| 69 | + padding: 3px 16px 0px 0px;
|
| 70 | +}
|
Index: trunk/extensions/FlaggedRevs/img/boxY.png |
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes on: trunk/extensions/FlaggedRevs/img/boxY.png |
___________________________________________________________________ |
Added: svn:mime-type |
49 | 71 | + image/png |
Index: trunk/extensions/FlaggedRevs/img/boxQ.png |
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes on: trunk/extensions/FlaggedRevs/img/boxQ.png |
___________________________________________________________________ |
Added: svn:mime-type |
50 | 72 | + image/png |
Index: trunk/extensions/FlaggedRevs/img/boxC.png |
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes on: trunk/extensions/FlaggedRevs/img/boxC.png |
___________________________________________________________________ |
Added: svn:mime-type |
51 | 73 | + image/png |