Index: trunk/extensions/ArticleFeedbackv5/sql/alter.sql |
— | — | @@ -60,3 +60,12 @@ |
61 | 61 | -- added 1/16 (greg) |
62 | 62 | ALTER TABLE aft_article_feedback ADD COLUMN af_helpful_count integer unsigned NOT NULL DEFAULT 0; |
63 | 63 | ALTER TABLE aft_article_feedback ADD COLUMN af_delete_count integer unsigned NOT NULL DEFAULT 0; |
| 64 | + |
| 65 | +-- added 1/18 (greg) |
| 66 | +DELETE FROM aft_article_filter_count; |
| 67 | +INSERT INTO aft_article_filter_count(afc_page_id, afc_filter_name, afc_filter_count) SELECT af_page_id, 'helpful', COUNT(*) FROM aft_article_feedback WHERE af_helpful_count > 0 GROUP BY af_page_id; |
| 68 | +INSERT INTO aft_article_filter_count(afc_page_id, afc_filter_name, afc_filter_count) SELECT af_page_id, 'abuse', COUNT(*) FROM aft_article_feedback WHERE af_abuse_count = 0 GROUP BY af_page_id; |
| 69 | +INSERT INTO aft_article_filter_count(afc_page_id, afc_filter_name, afc_filter_count) SELECT af_page_id, 'invisible', COUNT(*) FROM aft_article_feedback WHERE af_hide_count > 0 GROUP BY af_page_id; |
| 70 | +INSERT INTO aft_article_filter_count(afc_page_id, afc_filter_name, afc_filter_count) SELECT af_page_id, 'visible', COUNT(*) FROM aft_article_feedback WHERE af_hide_count = 0 GROUP BY af_page_id; |
| 71 | +INSERT INTO aft_article_filter_count(afc_page_id, afc_filter_name, afc_filter_count) SELECT af_page_id, 'all', COUNT(*) FROM aft_article_feedback GROUP BY af_page_id; |
| 72 | +INSERT INTO aft_article_filter_count(afc_page_id, afc_filter_name, afc_filter_count) SELECT af_page_id, 'comment', COUNT(*) FROM aft_article_feedback, aft_article_answer WHERE af_id = aa_feedback_id AND aa_response_text IS NOT NULL GROUP BY af_page_id; |
Index: trunk/extensions/ArticleFeedbackv5/ArticleFeedbackv5.i18n.php |
— | — | @@ -93,7 +93,7 @@ |
94 | 94 | 'articlefeedbackv5-discussion-page' => 'Discussion', |
95 | 95 | 'articlefeedbackv5-whats-this' => 'Help', |
96 | 96 | 'articlefeedbackv5-invalid-page-id' => 'Invalid page ID', |
97 | | - 'articlefeedbackv5-percent-found' => ' of users found what they were looking for.', // TODO: yeah, i know this is awful. |
| 97 | + 'articlefeedbackv5-percent-found' => '<span class="stat-marker positive">$1%</span> of users found what they were looking for.', |
98 | 98 | 'articlefeedbackv5-overall-rating' => 'Rating: $1/5', |
99 | 99 | 'articlefeedbackv5-special-title' => '==Feedback==', |
100 | 100 | 'articlefeedbackv5' => 'Article feedback dashboard', |
Index: trunk/extensions/ArticleFeedbackv5/SpecialArticleFeedbackv5.php |
— | — | @@ -98,7 +98,7 @@ |
99 | 99 | 'div', |
100 | 100 | array( 'id' => 'articleFeedbackv5-percent-found-wrap' ) |
101 | 101 | ) |
102 | | - . $this->msg( 'articlefeedbackv5-percent-found', $found )->escaped() |
| 102 | + . $this->msg( 'articlefeedbackv5-percent-found', $found ) # Can't escape this, need the <span> tag to parse. |
103 | 103 | . Html::closeElement( 'div' ) |
104 | 104 | . Html::element( |
105 | 105 | 'a', |