diff options
author | Eric Eastwood <contact@ericeastwood.com> | 2017-04-12 01:46:51 -0500 |
---|---|---|
committer | Eric Eastwood <contact@ericeastwood.com> | 2017-04-13 13:45:37 -0500 |
commit | 0cb6370a2de01e76ab666ab253492a25b23d2687 (patch) | |
tree | 67c181b29c8351acff9d72be4e9682109b15fee3 /app/views | |
parent | a62ae94d9c5940e87679b1ce8a0aee8b82b4d59e (diff) | |
download | gitlab-ce-0cb6370a2de01e76ab666ab253492a25b23d2687.tar.gz |
Fix note header timeago and action overlap30810-fix-note-header-info-and-action-overlap
Fix https://gitlab.com/gitlab-org/gitlab-ce/issues/30810
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/projects/notes/_note.html.haml | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/app/views/projects/notes/_note.html.haml b/app/views/projects/notes/_note.html.haml index c12c05eeb73..c4b8ee8d859 100644 --- a/app/views/projects/notes/_note.html.haml +++ b/app/views/projects/notes/_note.html.haml @@ -12,19 +12,21 @@ = image_tag avatar_icon(note.author), alt: '', class: 'avatar s40' .timeline-content .note-header - %a.visible-xs{ href: user_path(note.author) } - = note.author.to_reference - = link_to_member(note.project, note.author, avatar: false, extra_class: 'hidden-xs') - .note-headline-light - %span.hidden-xs - = note.author.to_reference - - unless note.system - commented - - if note.system - %span.system-note-message - = note.redacted_note_html - %a{ href: "##{dom_id(note)}" } - = time_ago_with_tooltip(note.created_at, placement: 'bottom', html_class: 'note-created-ago') + .note-header-info + %a{ href: user_path(note.author) } + %span.hidden-xs + = sanitize(note.author.name) + %span.note-headline-light + = note.author.to_reference + %span.note-headline-light + %span.note-headline-meta + - unless note.system + commented + - if note.system + %span.system-note-message + = note.redacted_note_html + %a{ href: "##{dom_id(note)}" } + = time_ago_with_tooltip(note.created_at, placement: 'bottom', html_class: 'note-created-ago') - unless note.system? .note-actions - access = note_max_access_for_user(note) |