Commit 0dbeffae authored by dimitrieh's avatar dimitrieh Committed by Annabel Dunstone Gray

Show organisation membership and delete comment on smaller viewports, plus...

Show organisation membership and delete comment on smaller viewports, plus change comment author name to username
parent f54917f1
...@@ -9,8 +9,11 @@ ...@@ -9,8 +9,11 @@
= image_tag avatar_icon(note.author), alt: '', class: 'avatar s40' = image_tag avatar_icon(note.author), alt: '', class: 'avatar s40'
.timeline-content .timeline-content
.note-header .note-header
= link_to_member(note.project, note.author, avatar: false) %a{ href: user_path(note.author), class: 'visible-xs' }
= note.author.to_reference
= link_to_member(note.project, note.author, avatar: false, extra_class: 'hidden-xs')
.note-headline-light .note-headline-light
%span.hidden-xs
= note.author.to_reference = note.author.to_reference
- unless note.system - unless note.system
commented commented
...@@ -23,7 +26,7 @@ ...@@ -23,7 +26,7 @@
.note-actions .note-actions
- access = note_max_access_for_user(note) - access = note_max_access_for_user(note)
- if access - if access
%span.note-role.hidden-xs= access %span.note-role= access
- if note.resolvable? - if note.resolvable?
- can_resolve = can?(current_user, :resolve_note, note) - can_resolve = can?(current_user, :resolve_note, note)
...@@ -59,7 +62,7 @@ ...@@ -59,7 +62,7 @@
- if note_editable - if note_editable
= link_to '#', title: 'Edit comment', class: 'note-action-button js-note-edit' do = link_to '#', title: 'Edit comment', class: 'note-action-button js-note-edit' do
= icon('pencil', class: 'link-highlight') = icon('pencil', class: 'link-highlight')
= 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 hidden-xs js-note-delete danger' do = 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 danger' do
= icon('trash-o', class: 'danger-highlight') = icon('trash-o', class: 'danger-highlight')
.note-body{ class: note_editable ? 'js-task-list-container' : '' } .note-body{ class: note_editable ? 'js-task-list-container' : '' }
.note-text.md .note-text.md
......
---
title: Show organisation membership and delete comment on smaller viewports, plus change comment author name to username
merge_request:
author:
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment