diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-08-06 14:03:27 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-08-06 14:03:27 +0200 |
commit | cba7f20dc8614d12e3eeda6e14f454aeb22b9b54 (patch) | |
tree | f4c13a141c07a8baa0bf404b33ade6cfbd4c4f0e /app/views/users | |
parent | ce47dd4bb0c686aee13b309b07eb8f976aa5d547 (diff) | |
download | gitlab-ce-cba7f20dc8614d12e3eeda6e14f454aeb22b9b54.tar.gz |
Allow users to send abuse reports
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/users')
-rw-r--r-- | app/views/users/show.html.haml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/views/users/show.html.haml b/app/views/users/show.html.haml index 43d847831d6..64b7f25ad37 100644 --- a/app/views/users/show.html.haml +++ b/app/views/users/show.html.haml @@ -18,6 +18,16 @@ = link_to profile_path, class: 'btn btn-sm' do %i.fa.fa-pencil-square-o Edit Profile settings + - elsif current_user + .pull-right + %span.dropdown + %a.light.dropdown-toggle.btn.btn-sm{href: '#', "data-toggle" => "dropdown"} + = icon('exclamation-circle') + %ul.dropdown-menu.dropdown-menu-right + %li + = link_to new_abuse_report_path(user_id: @user.id) do + Report abuse + .username @#{@user.username} .description |