2017-04-27 06:41:26 -04:00
|
|
|
- if current_user
|
|
|
|
- if note.emoji_awardable?
|
2017-07-18 01:09:04 -04:00
|
|
|
.note-actions-item
|
2018-08-24 06:13:41 -04:00
|
|
|
= 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-07-18 01:09:04 -04:00
|
|
|
= icon('spinner spin')
|
|
|
|
%span{ class: 'link-highlight award-control-icon-neutral' }= custom_icon('emoji_slightly_smiling_face')
|
|
|
|
%span{ class: 'link-highlight award-control-icon-positive' }= custom_icon('emoji_smiley')
|
|
|
|
%span{ class: 'link-highlight award-control-icon-super-positive' }= custom_icon('emoji_smile')
|
|
|
|
|
|
|
|
- if note_editable
|
|
|
|
.note-actions-item
|
|
|
|
= button_tag title: 'Edit comment', class: 'note-action-button js-note-edit has-tooltip btn btn-transparent', data: { container: 'body' } do
|
|
|
|
%span.link-highlight
|
|
|
|
= custom_icon('icon_pencil')
|
2017-06-07 14:33:50 -04:00
|
|
|
|
|
|
|
= render 'projects/notes/more_actions_dropdown', note: note, note_editable: note_editable
|