Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
6a10ed3f
Commit
6a10ed3f
authored
May 09, 2018
by
Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add dot to separate system notes content
parent
f667bbce
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
5 deletions
+18
-5
app/assets/javascripts/notes/components/note_header.vue
app/assets/javascripts/notes/components/note_header.vue
+4
-1
app/assets/javascripts/vue_shared/components/time_ago_tooltip.vue
...ts/javascripts/vue_shared/components/time_ago_tooltip.vue
+2
-2
app/assets/stylesheets/pages/notes.scss
app/assets/stylesheets/pages/notes.scss
+4
-0
app/views/shared/notes/_note.html.haml
app/views/shared/notes/_note.html.haml
+3
-2
changelogs/unreleased/jivl-add-dot-system-notes.yml
changelogs/unreleased/jivl-add-dot-system-notes.yml
+5
-0
No files found.
app/assets/javascripts/notes/components/note_header.vue
View file @
6a10ed3f
...
...
@@ -78,10 +78,13 @@ export default {
v-html=
"actionTextHtml"
class=
"system-note-message"
>
</span>
<span
class=
"system-note-separator"
>
·
</span>
<a
:href=
"noteTimestampLink"
@
click=
"updateTargetNoteHash"
class=
"note-timestamp"
>
class=
"note-timestamp
system-note-separator
"
>
<time-ago-tooltip
:time=
"createdAt"
tooltip-placement=
"bottom"
...
...
app/assets/javascripts/vue_shared/components/time_ago_tooltip.vue
View file @
6a10ed3f
...
...
@@ -40,7 +40,7 @@ export default {
:class=
"cssClass"
:title=
"tooltipTitle(time)"
:data-placement=
"tooltipPlacement"
data-container=
"body"
>
{{
timeFormated
(
time
)
}}
data-container=
"body"
v-text=
"timeFormated(time)"
>
</time>
</
template
>
app/assets/stylesheets/pages/notes.scss
View file @
6a10ed3f
...
...
@@ -459,6 +459,10 @@ ul.notes {
white-space
:
normal
;
}
.system-note-separator
{
color
:
$gl-text-color-disabled
;
}
a
:hover
{
text-decoration
:
underline
;
}
...
...
app/views/shared/notes/_note.html.haml
View file @
6a10ed3f
...
...
@@ -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?
...
...
changelogs/unreleased/jivl-add-dot-system-notes.yml
0 → 100644
View file @
6a10ed3f
---
title
:
Add dot to separate system notes content
merge_request
:
18864
author
:
type
:
changed
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment