Show 'View reported User' in addition to the other buttons if reason.target.user is present

This commit is contained in:
Yuki 2015-04-26 03:23:22 +05:30
parent 0bb3895ce8
commit ba9262145d
1 changed files with 3 additions and 0 deletions

View File

@ -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