diff options
Diffstat (limited to 'app/views/snippets/notes/_actions.html.haml')
-rw-r--r-- | app/views/snippets/notes/_actions.html.haml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/views/snippets/notes/_actions.html.haml b/app/views/snippets/notes/_actions.html.haml new file mode 100644 index 00000000000..098a88c48c5 --- /dev/null +++ b/app/views/snippets/notes/_actions.html.haml @@ -0,0 +1,10 @@ +- if current_user + - if note.emoji_awardable? + - user_authored = note.user_authored?(current_user) + = link_to '#', title: 'Add reaction', class: "note-action-button note-emoji-button js-add-award js-note-emoji #{'js-user-authored' if user_authored} has-tooltip", data: { position: 'right' } do + = 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') + + = render 'projects/notes/more_actions_dropdown', note: note, note_editable: note_editable |