diff options
author | Dimitrie Hoekstra <dimitrie@gitlab.com> | 2017-08-25 15:19:26 +0300 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2017-08-25 15:19:26 +0300 |
commit | 4a14efb00ef148884fec56e4a06b7ff748b38115 (patch) | |
tree | bd529ef2e9d3358a504b883a5423b76bb883d0ea /app/views/projects/notes | |
parent | 0036fc6fbcef39d47479193834607f4a0be272e0 (diff) |
Add support for copying permalink to notes via more actions dropdown
Diffstat (limited to 'app/views/projects/notes')
-rw-r--r-- | app/views/projects/notes/_more_actions_dropdown.html.haml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/projects/notes/_more_actions_dropdown.html.haml b/app/views/projects/notes/_more_actions_dropdown.html.haml index 5930209a682..7e854186973 100644 --- a/app/views/projects/notes/_more_actions_dropdown.html.haml +++ b/app/views/projects/notes/_more_actions_dropdown.html.haml @@ -6,6 +6,8 @@ %span.icon = custom_icon('ellipsis_v') %ul.dropdown-menu.more-actions-dropdown.dropdown-open-left + %li + = clipboard_button(text: noteable_note_url(note), title: "Copy reference to clipboard", button_text: 'Copy link', hide_tooltip: true, hide_button_icon: true) - unless is_current_user %li = link_to new_abuse_report_path(user_id: note.author.id, ref_url: noteable_note_url(note)) do |