summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-04-08 16:02:13 +0100
committerPhil Hughes <me@iamphill.com>2016-04-08 16:02:13 +0100
commit6dacf0fd6d2627e05e50e0116566946e3b81bc5f (patch)
treee5fa508a9417bbe9ceccae3a1c2411cdf223c9f3
parent312a09e7aa8ad74481f52c632a976a2218fbf025 (diff)
downloadgitlab-ce-member-access-note-row.tar.gz
Fixed issue with member access not being visible on notesmember-access-note-row
Fixes #15049
-rw-r--r--app/views/projects/notes/_note.html.haml12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/views/projects/notes/_note.html.haml b/app/views/projects/notes/_note.html.haml
index a681d6dece4..b4fa917718b 100644
--- a/app/views/projects/notes/_note.html.haml
+++ b/app/views/projects/notes/_note.html.haml
@@ -10,12 +10,12 @@
= "#{note.author.to_reference} commented"
%a{ href: "##{dom_id(note)}" }
= time_ago_with_tooltip(note.created_at, placement: 'bottom', html_class: 'note-created-ago')
- - if note_editable?(note)
- .note-actions
- - access = note.project.team.human_max_access(note.author.id)
- - if access
- %span.note-role
- = access
+ .note-actions
+ - access = note.project.team.human_max_access(note.author.id)
+ - if access
+ %span.note-role
+ = access
+ - if note_editable?(note)
= link_to '#', title: 'Edit comment', class: 'note-action-button js-note-edit' do
= icon('pencil-square-o')
= link_to namespace_project_note_path(note.project.namespace, note.project, note), title: 'Remove comment', method: :delete, data: { confirm: 'Are you sure you want to remove this comment?' }, remote: true, class: 'note-action-button js-note-delete' do