Commit 20dcf5f8 authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett

[ci skip] Correct rendering more actions dropdown when there are no actions...

[ci skip] Correct rendering more actions dropdown when there are no actions and correct the more actions dropdown divider conditional
parent 0feb1668
- is_current_user = current_user == note.author
- return unless note_editable || !is_current_user
.dropdown.more-actions .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 = 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') = icon('ellipsis-v', class: 'icon')
...@@ -5,8 +9,8 @@ ...@@ -5,8 +9,8 @@
- if note_editable - if note_editable
%li %li
= button_tag 'Edit comment', class: 'js-note-edit btn btn-transparent' = button_tag 'Edit comment', class: 'js-note-edit btn btn-transparent'
%li.divider %li.divider
- if current_user != note.author - unless is_current_user
%li %li
= link_to new_abuse_report_path(user_id: note.author.id, ref_url: noteable_note_url(note)) do = link_to new_abuse_report_path(user_id: note.author.id, ref_url: noteable_note_url(note)) do
Report as abuse Report as abuse
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment