summaryrefslogtreecommitdiff
path: root/app/views/projects/notes/_more_actions_dropdown.html.haml
blob: e0d45054854c905e98060ff4d1167258eed05433 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
.dropdown.more-actions
  = button_tag title: 'More actions', class: 'note-action-button more-actions-toggle has-tooltip btn btn-transparent', data: { toggle: 'dropdown', container: 'body' } do
    = icon('ellipsis-v', class: 'icon')
  %ul.dropdown-menu.more-actions-dropdown.dropdown-open-left
    %li
      = button_tag 'Edit comment', class: 'js-note-edit btn btn-transparent'
    %li.divider
      %li
        = link_to new_abuse_report_path(user_id: note.author.id, ref_url: noteable_note_url(note)) do
          Report as abuse
    - if note_editable
      %li
        = link_to note_url(note), method: :delete, data: { confirm: 'Are you sure you want to delete this comment?' }, remote: true, class: 'js-note-delete' do
          %span.text-danger Delete comment