Index: trunk/extensions/Reviews/includes/ReviewPager.php |
— | — | @@ -158,8 +158,7 @@ |
159 | 159 | } |
160 | 160 | break; |
161 | 161 | case 'review_rating': |
162 | | - // TODO: might want to display stars here as well. |
163 | | - $value = $this->getLanguage()->formatNum( $value ); |
| 162 | + $value = $this->currentReview->getRating()->getDisplayHTML(); |
164 | 163 | break; |
165 | 164 | } |
166 | 165 | |
Index: trunk/extensions/Reviews/Reviews.php |
— | — | @@ -215,7 +215,7 @@ |
216 | 216 | 'reviews.pager.js', |
217 | 217 | ), |
218 | 218 | 'dependencies' => array( |
219 | | - 'jquery.reviewState', |
| 219 | + 'jquery.reviewState', 'jquery.reviewRating', |
220 | 220 | ), |
221 | 221 | ); |
222 | 222 | |
Index: trunk/extensions/Reviews/resources/reviews.pager.js |
— | — | @@ -14,6 +14,8 @@ |
15 | 15 | $( e ).reviewState(); |
16 | 16 | } ); |
17 | 17 | |
| 18 | + $( '.review-rating-display' ).reviewRating(); |
| 19 | + |
18 | 20 | } ); |
19 | 21 | |
20 | 22 | })( window.jQuery, window.mediaWiki ); |