Index: trunk/extensions/ArticleFeedbackv5/api/ApiViewFeedbackArticleFeedbackv5.php |
— | — | @@ -258,16 +258,21 @@ |
259 | 259 | private function renderBucket1( $record ) { |
260 | 260 | $name = htmlspecialchars( $record[0]->user_name ); |
261 | 261 | if ( $record['found']->aa_response_boolean ) { |
262 | | - $found = wfMessage( |
263 | | - 'articlefeedbackv5-form1-header-found', |
264 | | - $name |
265 | | - )->escaped(); |
| 262 | + $msg = 'articlefeedbackv5-form1-header-found'; |
| 263 | + $class = 'positive'; |
266 | 264 | } else { |
267 | | - $found = wfMessage( |
268 | | - 'articlefeedbackv5-form1-header-not-found', |
269 | | - $name |
270 | | - )->escaped(); |
| 265 | + $msg = 'articlefeedbackv5-form1-header-not-found'; |
| 266 | + $class = 'negative'; |
271 | 267 | } |
| 268 | + $found = Html::openElement( 'h3' ) |
| 269 | + . Html::element( 'a', array( |
| 270 | + 'href' => '#', |
| 271 | + ), $name ) |
| 272 | + .Html::element( 'span', array( |
| 273 | + 'class' => $class, |
| 274 | + ), wfMessage( $msg, '')->escaped() ) |
| 275 | + . Html::closeElement( 'h3' ); |
| 276 | + |
272 | 277 | return "$found |
273 | 278 | <blockquote>" . htmlspecialchars( $record['comment']->aa_response_text ) |
274 | 279 | . '</blockquote>'; |