From 6a10ed3ff2ddd0e13fe22dbd43c3dcd5e3083910 Mon Sep 17 00:00:00 2001 From: Jose Date: Wed, 9 May 2018 16:43:46 -0500 Subject: [PATCH] Add dot to separate system notes content --- app/assets/javascripts/notes/components/note_header.vue | 5 ++++- .../javascripts/vue_shared/components/time_ago_tooltip.vue | 4 ++-- app/assets/stylesheets/pages/notes.scss | 4 ++++ app/views/shared/notes/_note.html.haml | 5 +++-- changelogs/unreleased/jivl-add-dot-system-notes.yml | 5 +++++ 5 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 changelogs/unreleased/jivl-add-dot-system-notes.yml diff --git a/app/assets/javascripts/notes/components/note_header.vue b/app/assets/javascripts/notes/components/note_header.vue index c3d1ef1fcc6..76028f7f3f7 100644 --- a/app/assets/javascripts/notes/components/note_header.vue +++ b/app/assets/javascripts/notes/components/note_header.vue @@ -78,10 +78,13 @@ export default { v-html="actionTextHtml" class="system-note-message"> + + · + + class="note-timestamp system-note-separator"> - {{ timeFormated(time) }} + data-container="body" + v-text="timeFormated(time)"> diff --git a/app/assets/stylesheets/pages/notes.scss b/app/assets/stylesheets/pages/notes.scss index 6d5c6cb136f..a8fd3aa6412 100644 --- a/app/assets/stylesheets/pages/notes.scss +++ b/app/assets/stylesheets/pages/notes.scss @@ -459,6 +459,10 @@ ul.notes { white-space: normal; } + .system-note-separator { + color: $gl-text-color-disabled; + } + a:hover { text-decoration: underline; } diff --git a/app/views/shared/notes/_note.html.haml b/app/views/shared/notes/_note.html.haml index 893a7f26ebd..d4e67b5e7e3 100644 --- a/app/views/shared/notes/_note.html.haml +++ b/app/views/shared/notes/_note.html.haml @@ -41,8 +41,9 @@ - if note.system %span.system-note-message = markdown_field(note, :note) - %a{ href: "##{dom_id(note)}" } - = time_ago_with_tooltip(note.created_at, placement: 'bottom', html_class: 'note-created-ago') + %span.system-note-separator + · + %a.system-note-separator{ href: "##{dom_id(note)}" }= time_ago_with_tooltip(note.created_at, placement: 'bottom', html_class: 'note-created-ago') - unless note.system? .note-actions - if note.for_personal_snippet? diff --git a/changelogs/unreleased/jivl-add-dot-system-notes.yml b/changelogs/unreleased/jivl-add-dot-system-notes.yml new file mode 100644 index 00000000000..2246bab1464 --- /dev/null +++ b/changelogs/unreleased/jivl-add-dot-system-notes.yml @@ -0,0 +1,5 @@ +--- +title: Add dot to separate system notes content +merge_request: 18864 +author: +type: changed