Commit e1e186bb authored by Annabel Dunstone Gray's avatar Annabel Dunstone Gray

Wrap MR content -stable branch

parent 7d10817c
...@@ -374,6 +374,15 @@ ul.notes { ...@@ -374,6 +374,15 @@ ul.notes {
} }
} }
.note-headline-meta {
display: inline-block;
white-space: nowrap;
.system-note-message {
white-space: normal;
}
}
/** /**
* Actions for Discussions/Notes * Actions for Discussions/Notes
*/ */
......
...@@ -12,19 +12,21 @@ ...@@ -12,19 +12,21 @@
= 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
%a.visible-xs{ href: user_path(note.author) } .note-header-info
= note.author.to_reference %a{ href: user_path(note.author) }
= link_to_member(note.project, note.author, avatar: false, extra_class: 'hidden-xs') %span.hidden-xs
.note-headline-light = sanitize(note.author.name)
%span.hidden-xs %span.note-headline-light
= note.author.to_reference = note.author.to_reference
- unless note.system %span.note-headline-light
commented %span.note-headline-meta
- if note.system - unless note.system
%span.system-note-message commented
= note.redacted_note_html - if note.system
%a{ href: "##{dom_id(note)}" } %span.system-note-message
= time_ago_with_tooltip(note.created_at, placement: 'bottom', html_class: 'note-created-ago') = 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? - unless note.system?
.note-actions .note-actions
- access = note_max_access_for_user(note) - access = note_max_access_for_user(note)
......
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