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
Hide 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 {
...
@@ -102,7 +102,7 @@ export default {
<issue-note-header
<issue-note-header
:author=
"author"
:author=
"author"
:createdAt=
"discussion.created_at"
:createdAt=
"discussion.created_at"
:note
Path=
"discussion.path
"
:note
Id=
"discussion.id
"
:includeToggle=
"true"
:includeToggle=
"true"
:toggleHandler=
"toggleDiscussion"
:toggleHandler=
"toggleDiscussion"
actionText=
"started a discussion"
/>
actionText=
"started a discussion"
/>
...
...
app/assets/javascripts/notes/components/issue_note.vue
View file @
afece660
...
@@ -112,7 +112,7 @@ export default {
...
@@ -112,7 +112,7 @@ export default {
<issue-note-header
<issue-note-header
:author=
"author"
:author=
"author"
:createdAt=
"note.created_at"
:createdAt=
"note.created_at"
:note
Path=
"note.path
"
:note
Id=
"note.id
"
actionText=
"commented"
/>
actionText=
"commented"
/>
<issue-note-actions
<issue-note-actions
:accessLevel=
"note.human_access"
:accessLevel=
"note.human_access"
...
...
app/assets/javascripts/notes/components/issue_note_header.vue
View file @
afece660
...
@@ -21,8 +21,8 @@ export default {
...
@@ -21,8 +21,8 @@ export default {
required
:
false
,
required
:
false
,
default
:
''
,
default
:
''
,
},
},
note
Path
:
{
note
Id
:
{
type
:
String
,
type
:
Number
,
required
:
true
,
required
:
true
,
},
},
includeToggle
:
{
includeToggle
:
{
...
@@ -47,6 +47,9 @@ export default {
...
@@ -47,6 +47,9 @@ export default {
toggleChevronClass
()
{
toggleChevronClass
()
{
return
this
.
isExpanded
?
'
fa-chevron-up
'
:
'
fa-chevron-down
'
;
return
this
.
isExpanded
?
'
fa-chevron-up
'
:
'
fa-chevron-down
'
;
},
},
noteTimestampLink
()
{
return
`#note_
${
this
.
noteId
}
`
;
},
},
},
methods
:
{
methods
:
{
handleToggle
()
{
handleToggle
()
{
...
@@ -76,7 +79,7 @@ export default {
...
@@ -76,7 +79,7 @@ export default {
v-if=
"actionTextHtml"
v-if=
"actionTextHtml"
v-html=
"actionTextHtml"
v-html=
"actionTextHtml"
class=
"system-note-message"
></span>
class=
"system-note-message"
></span>
<a
:href=
"note
Path
"
>
<a
:href=
"note
TimestampLink
"
>
<time-ago-tooltip
<time-ago-tooltip
:time=
"createdAt"
:time=
"createdAt"
tooltipPlacement=
"bottom"
/>
tooltipPlacement=
"bottom"
/>
...
...
app/assets/javascripts/notes/components/issue_system_note.vue
View file @
afece660
...
@@ -31,7 +31,7 @@ export default {
...
@@ -31,7 +31,7 @@ export default {
<issue-note-header
<issue-note-header
:author=
"note.author"
:author=
"note.author"
:createdAt=
"note.created_at"
:createdAt=
"note.created_at"
:note
Path=
"note.path
"
:note
Id=
"note.id
"
:actionTextHtml=
"note.note_html"
/>
:actionTextHtml=
"note.note_html"
/>
</div>
</div>
</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