diff options
author | flaburgan <flaburgan@geexxx.fr> | 2014-10-12 14:04:53 +0400 |
---|---|---|
committer | Flaburgan <flaburgan@geexxx.fr> | 2014-10-13 16:11:51 +0400 |
commit | 20d2b8fc5eb1f9ed9601e808c487461a9bc74f2b (patch) | |
tree | 43a9ecd5702a4b969dc13e6ecf8334791941fb0b /app | |
parent | 7be837092400f7a02d1dec3fb3ed3402d3226f5b (diff) |
Add a link to a reported comment in the admin panel
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/report_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/report_helper.rb b/app/helpers/report_helper.rb index 10509ccfd..2170e3665 100644 --- a/app/helpers/report_helper.rb +++ b/app/helpers/report_helper.rb @@ -9,7 +9,7 @@ module ReportHelper elsif type == 'comment' && !(comment = Comment.find_by_id(id)).nil? # comment_message is not html_safe. To prevent # cross-site-scripting we have to escape html - raw t('report.comment_label', data: h(comment_message(comment))) + raw t('report.comment_label', data: link_to(h(comment_message(comment)), post_path(comment.post.id, anchor: comment.guid))) else raw t('report.not_found') end |