summaryrefslogtreecommitdiff
path: root/app/views/projects/notes
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-06-30 17:21:57 +0100
committerDouwe Maan <douwe@selenight.nl>2016-07-24 13:10:37 -0600
commitaf5fc6e24ce3e2f5fa42d6764a780afe0d6471d9 (patch)
tree261081aa15e31f089acaf124cb743b21d5724df3 /app/views/projects/notes
parentfb362795ce5ed63a34cd5b832ece22e5f712d851 (diff)
downloadgitlab-ce-af5fc6e24ce3e2f5fa42d6764a780afe0d6471d9.tar.gz
Diff line comments resolve
Diffstat (limited to 'app/views/projects/notes')
-rw-r--r--app/views/projects/notes/_note.html.haml4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/projects/notes/_note.html.haml b/app/views/projects/notes/_note.html.haml
index 71da8ac9d7c..9b1eb8545e5 100644
--- a/app/views/projects/notes/_note.html.haml
+++ b/app/views/projects/notes/_note.html.haml
@@ -20,6 +20,10 @@
- access = note_max_access_for_user(note)
- if access and not note.system
%span.note-role.hidden-xs= access
+ - unless note.system
+ %line-btn{ ":note-id" => note.id, ":resolved" => "false", "inline-template" => true }
+ %button.note-action-button.line-resolve-btn{ type: "button", "v-bind:class" => "{ 'is-active': resolved }", "v-bind:aria-label" => "buttonText", "v-on:click" => "resolve", "v-bind:title" => "buttonText" }
+ = icon("check")
- if current_user and not note.system
= link_to '#', title: 'Award Emoji', class: 'note-action-button note-emoji-button js-add-award js-note-emoji', data: { position: 'right' } do
= icon('spinner spin')