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
afece660
Commit
afece660
authored
Jul 05, 2017
by
Fatih Acet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IssueNotesRefactor: Fix anchor of note timestamp.
parent
116474c5
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
6 deletions
+9
-6
app/assets/javascripts/notes/components/issue_discussion.vue
app/assets/javascripts/notes/components/issue_discussion.vue
+1
-1
app/assets/javascripts/notes/components/issue_note.vue
app/assets/javascripts/notes/components/issue_note.vue
+1
-1
app/assets/javascripts/notes/components/issue_note_header.vue
...assets/javascripts/notes/components/issue_note_header.vue
+6
-3
app/assets/javascripts/notes/components/issue_system_note.vue
...assets/javascripts/notes/components/issue_system_note.vue
+1
-1
No files found.
app/assets/javascripts/notes/components/issue_discussion.vue
View file @
afece660
...
...
@@ -102,7 +102,7 @@ export default {
<issue-note-header
:author=
"author"
:createdAt=
"discussion.created_at"
:note
Path=
"discussion.path
"
:note
Id=
"discussion.id
"
:includeToggle=
"true"
:toggleHandler=
"toggleDiscussion"
actionText=
"started a discussion"
/>
...
...
app/assets/javascripts/notes/components/issue_note.vue
View file @
afece660
...
...
@@ -112,7 +112,7 @@ export default {
<issue-note-header
:author=
"author"
:createdAt=
"note.created_at"
:note
Path=
"note.path
"
:note
Id=
"note.id
"
actionText=
"commented"
/>
<issue-note-actions
:accessLevel=
"note.human_access"
...
...
app/assets/javascripts/notes/components/issue_note_header.vue
View file @
afece660
...
...
@@ -21,8 +21,8 @@ export default {
required
:
false
,
default
:
''
,
},
note
Path
:
{
type
:
String
,
note
Id
:
{
type
:
Number
,
required
:
true
,
},
includeToggle
:
{
...
...
@@ -47,6 +47,9 @@ export default {
toggleChevronClass
()
{
return
this
.
isExpanded
?
'
fa-chevron-up
'
:
'
fa-chevron-down
'
;
},
noteTimestampLink
()
{
return
`#note_
${
this
.
noteId
}
`
;
},
},
methods
:
{
handleToggle
()
{
...
...
@@ -76,7 +79,7 @@ export default {
v-if=
"actionTextHtml"
v-html=
"actionTextHtml"
class=
"system-note-message"
></span>
<a
:href=
"note
Path
"
>
<a
:href=
"note
TimestampLink
"
>
<time-ago-tooltip
:time=
"createdAt"
tooltipPlacement=
"bottom"
/>
...
...
app/assets/javascripts/notes/components/issue_system_note.vue
View file @
afece660
...
...
@@ -31,7 +31,7 @@ export default {
<issue-note-header
:author=
"note.author"
:createdAt=
"note.created_at"
:note
Path=
"note.path
"
:note
Id=
"note.id
"
:actionTextHtml=
"note.note_html"
/>
</div>
</div>
...
...
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