Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_actions.html.haml « notes « snippets « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 07640f579a22bc10cc9980e49f0cd712732c3848 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
- if current_user
  - if note.emoji_awardable?
    .note-actions-item
      = 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! ')

  - if note_editable
    .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', testid: 'edit-comment-button' } })

  = render 'projects/notes/more_actions_dropdown', note: note, note_editable: note_editable