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

17 lines
907 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
2019-02-15 15:39:39 +05:30
= link_to '#', title: _('Add reaction'), class: "note-action-button note-emoji-button js-add-award js-note-emoji has-tooltip", data: { position: 'right' } do
2017-09-10 17:25:29 +05:30
= icon('spinner spin')
2019-09-04 21:01:54 +05:30
%span{ class: 'link-highlight award-control-icon-neutral' }= sprite_icon('slight-smile')
%span{ class: 'link-highlight award-control-icon-positive' }= sprite_icon('smiley')
%span{ class: 'link-highlight award-control-icon-super-positive' }= sprite_icon('smile')
2017-09-10 17:25:29 +05:30
2017-08-17 22:00:37 +05:30
- if note_editable
2017-09-10 17:25:29 +05:30
.note-actions-item
2019-02-15 15:39:39 +05:30
= button_tag title: _('Edit comment'), class: 'note-action-button js-note-edit has-tooltip btn btn-transparent', data: { container: 'body' } do
2017-09-10 17:25:29 +05:30
%span.link-highlight
= custom_icon('icon_pencil')
= render 'projects/notes/more_actions_dropdown', note: note, note_editable: note_editable