debian-mirror-gitlab/app/views/snippets/notes/_actions.html.haml

14 lines
995 B
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
- if current_user
- if note.emoji_awardable?
2017-09-10 17:25:29 +05:30
.note-actions-item
2022-07-23 23:45:48 +05:30
= render Pajamas::ButtonComponent.new(category: :tertiary, button_options: { title: _('Add reaction'), class: 'btn-icon note-action-button note-emoji-button js-add-award js-note-emoji has-tooltip' }) do
= sprite_icon('slight-smile', css_class: 'award-control-icon-neutral gl-button-icon gl-icon')
= sprite_icon('smiley', css_class: 'award-control-icon-positive gl-button-icon gl-icon gl-left-3!')
= sprite_icon('smile', css_class: 'award-control-icon-super-positive gl-button-icon gl-icon gl-left-3! ')
2017-09-10 17:25:29 +05:30
2017-08-17 22:00:37 +05:30
- if note_editable
2022-07-23 23:45:48 +05:30
.note-actions-item.gl-ml-0
= render Pajamas::ButtonComponent.new(category: :tertiary, icon: 'pencil', button_options: { title: _('Edit comment'), class: 'note-action-button js-note-edit has-tooltip', data: { container: 'body', qa_selector: 'edit_comment_button' } })
2017-09-10 17:25:29 +05:30
= render 'projects/notes/more_actions_dropdown', note: note, note_editable: note_editable