Index: trunk/extensions/ArticleFeedbackv5/modules/jquery.articleFeedbackv5/jquery.articleFeedbackv5.special.js |
— | — | @@ -6,7 +6,7 @@ |
7 | 7 | $.articleFeedbackv5special.page = hackPageId; |
8 | 8 | $.articleFeedbackv5special.filter = 'all'; |
9 | 9 | $.articleFeedbackv5special.sort = 'newest'; |
10 | | - $.articleFeedbackv5special.limit = 5; |
| 10 | + $.articleFeedbackv5special.limit = 25; |
11 | 11 | $.articleFeedbackv5special.offset = 0; |
12 | 12 | $.articleFeedbackv5special.showing = 0; |
13 | 13 | |
Index: trunk/extensions/ArticleFeedbackv5/api/ApiViewFeedbackArticleFeedbackv5.php |
— | — | @@ -92,7 +92,7 @@ |
93 | 93 | } |
94 | 94 | |
95 | 95 | public function fetchFeedback( $pageId, |
96 | | - $filter = 'visible', $order = 'newest', $limit = 5, $offset = 0 ) { |
| 96 | + $filter = 'visible', $order = 'newest', $limit = 25, $offset = 0 ) { |
97 | 97 | $dbr = wfGetDB( DB_SLAVE ); |
98 | 98 | $ids = array(); |
99 | 99 | $rows = array(); |
— | — | @@ -196,8 +196,8 @@ |
197 | 197 | default: $rv .= $this->renderNoBucket( $record ); break; |
198 | 198 | } |
199 | 199 | $rv .= "<p> |
200 | | - <a href='#' class='aft5-hide-link' id='aft5-hide-link-$id'>Hide this (".$record[0]->af_hide_count.")</a> |
201 | | -<br> |
| 200 | + Option ".$record[0]->af_bucket_id." | |
| 201 | + <a href='#' class='aft5-hide-link' id='aft5-hide-link-$id'>Hide this (".$record[0]->af_hide_count.")</a> | |
202 | 202 | <a href='#' class='aft5-abuse-link' id='aft5-abuse-link-$id'>Flag as abuse (".$record[0]->af_abuse_count.")</a> |
203 | 203 | </p> |
204 | 204 | </div><hr>"; |
— | — | @@ -236,8 +236,8 @@ |
237 | 237 | private function renderBucket5( $record ) { |
238 | 238 | $name = $record[0]->af_user_text; |
239 | 239 | $rv = "$name had this to say about robocop:<ul>"; |
240 | | - foreach( $record as $answer ) { |
241 | | - if( $answer->afi_data_type == 'rating' ) { |
| 240 | + foreach( $record as $key => $answer ) { |
| 241 | + if( $answer->afi_data_type == 'rating' && $key != '0' ) { |
242 | 242 | $rv .= "<li>".$answer->afi_name.': '.$answer->aa_response_rating."</li>"; |
243 | 243 | } |
244 | 244 | } |