From ba9262145d00378ae14aa69b312ff436518875ff Mon Sep 17 00:00:00 2001 From: Yuki Date: Sun, 26 Apr 2015 03:23:22 +0530 Subject: [PATCH] Show 'View reported User' in addition to the other buttons if reason.target.user is present --- app/views/moderation/_moderationbox.html.haml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/views/moderation/_moderationbox.html.haml b/app/views/moderation/_moderationbox.html.haml index 439b4eed..605a075a 100644 --- a/app/views/moderation/_moderationbox.html.haml +++ b/app/views/moderation/_moderationbox.html.haml @@ -26,6 +26,9 @@ %a.btn.btn-primary{href: content_url(report)} View reported = report.type.sub('Reports::', '') + - if report.target.respond_to? :user and not report.target.user.nil? + %a.btn.btn-primary{href: show_user_profile_path(report.target.user.screen_name)} + View reported User .col-md-6.col-sm-8.col-xs-6.text-right %span.mod-count{id: "mod-count-#{report.id}"} = report.votes