Index: trunk/extensions/ArticleFeedbackv5/ArticleFeedbackv5.i18n.php |
— | — | @@ -60,6 +60,8 @@ |
61 | 61 | 'articlefeedbackv5-special-filter-label-before' => 'Show only:', |
62 | 62 | 'articlefeedbackv5-special-filter-label-after' => '', |
63 | 63 | 'articlefeedbackv5-special-showing' => '$1 feedback posts on this page', // FIXME: Needs plural support on $1. |
| 64 | + 'articleFeedbackv5-link' => 'Permanent link', |
| 65 | + 'articleFeedbackv5-updates-since' => '$1 Edits since post', |
64 | 66 | 'articlefeedbackv5-special-more' => 'More', |
65 | 67 | 'articlefeedbackv5-special-pagetitle' => 'Feedback: $1', |
66 | 68 | |
Index: trunk/extensions/ArticleFeedbackv5/api/ApiViewFeedbackArticleFeedbackv5.php |
— | — | @@ -207,12 +207,31 @@ |
208 | 208 | $can_delete = 1; |
209 | 209 | $id = $record[0]->af_id; |
210 | 210 | |
211 | | - $header_links = Html::openElement( 'p', array( 'class' => 'articleFeedbackv5-comment-head' ) ) |
212 | | - . Html::element( 'a', array( 'class' => 'articleFeedbackv5-comment-name', 'href' => 'profilepage or whatever' ), $id ) |
213 | | - . Html::element( 'span', array( 'class' => 'articleFeedbackv5-comment-timestamp' ), $record[0]->af_created ) |
214 | | - . wfMessage( 'articlefeedbackv5-form-optionid', $record[0]->af_bucket_id )->escaped() |
215 | | - . Html::closeElement( 'p' ); |
| 211 | +# $header_links = Html::openElement( 'p', array( 'class' => 'articleFeedbackv5-comment-head' ) ) |
| 212 | +# . Html::element( 'a', array( 'class' => 'articleFeedbackv5-comment-name', 'href' => 'profilepage or whatever' ), $id ) |
| 213 | +# . Html::openElement( 'div', array( |
| 214 | +# . Html::element( 'span', array( 'class' => 'articleFeedbackv5-comment-timestamp' ), $record[0]->af_created ) |
| 215 | +# . wfMessage( 'articlefeedbackv5-form-optionid', $record[0]->af_bucket_id )->escaped() |
| 216 | +# . Html::closeElement( 'p' ); |
216 | 217 | |
| 218 | + $details = Html::openElement( 'div', array( |
| 219 | + 'class' => 'articleFeedbackv5-comment-details' |
| 220 | + ) ) |
| 221 | + . Html::element( 'div', array( |
| 222 | + 'class' => 'articleFeedbackv5-comment-details-date' |
| 223 | + ), date( 'r', $record[0]->af_created ) ) |
| 224 | + . Html::openElement( 'div', array( |
| 225 | + 'class' => 'articleFeedbackv5-comment-details-permalink' |
| 226 | + ) ) |
| 227 | + .Html::element( 'a', array( |
| 228 | + 'href' => '#' |
| 229 | + ), wfMessage( 'articlefeedbackv5-comment-link' ) ) |
| 230 | + . Html::closeElement( 'div' ) |
| 231 | + . Html::element( 'div', array( |
| 232 | + 'class' => 'articleFeedbackv5-comment-details-updates' |
| 233 | + ), wfMessage( 'articleFeedbackv5-updates-since', 0 ) ); |
| 234 | +; |
| 235 | + |
217 | 236 | $footer_links = Html::openElement( 'p', array( 'class' => 'articleFeedbackv5-comment-foot' ) ) |
218 | 237 | . Html::openElement( 'ul' ) |
219 | 238 | . ( $can_upvote ? Html::rawElement( 'li', array(), Html::element( 'a', array( |
— | — | @@ -247,9 +266,10 @@ |
248 | 267 | |
249 | 268 | # TODO: permalinks |
250 | 269 | return Html::openElement( 'div', array( 'class' => 'articleFeedbackv5-feedback' ) ) |
251 | | - . $tools |
252 | 270 | . $header_links |
253 | 271 | . $content |
| 272 | + . $details |
| 273 | + . $tools |
254 | 274 | . $footer_links |
255 | 275 | . $rate |
256 | 276 | . Html::closeElement( 'div' ); |
Index: trunk/extensions/ArticleFeedbackv5/ArticleFeedbackv5.hooks.php |
— | — | @@ -159,7 +159,9 @@ |
160 | 160 | 'articlefeedbackv5-abuse-saved', |
161 | 161 | 'articlefeedbackv5-hide-saved', |
162 | 162 | 'articlefeedbackv5-delete-saved', |
163 | | - 'articlefeedbackv5-helpful-saved' |
| 163 | + 'articlefeedbackv5-helpful-saved', |
| 164 | + 'articlefeedbackv5-comment-link' |
| 165 | + |
164 | 166 | ), |
165 | 167 | ), |
166 | 168 | ); |