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
f0dd2a54
Commit
f0dd2a54
authored
Mar 02, 2017
by
Bob Van Landuyt
Committed by
Bob Van Landuyt
Mar 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Link 'discussion' instead of date
Since the date would be wrong for people in different timezones.
parent
40be92e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
app/services/issues/build_service.rb
app/services/issues/build_service.rb
+1
-2
No files found.
app/services/issues/build_service.rb
View file @
f0dd2a54
...
...
@@ -37,10 +37,9 @@ module Issues
def
item_for_discussion
(
discussion
)
first_note
=
discussion
.
first_note_to_resolve
||
discussion
.
first_note
other_note_count
=
discussion
.
notes
.
size
-
1
creation_time
=
first_note
.
created_at
.
to_s
(
:medium
)
note_url
=
Gitlab
::
UrlBuilder
.
build
(
first_note
)
discussion_info
=
"- [ ]
#{
first_note
.
author
.
to_reference
}
commented in a
discussion on [
#{
creation_time
}
](
#{
note_url
}
): "
discussion_info
=
"- [ ]
#{
first_note
.
author
.
to_reference
}
commented in a
[discussion
](
#{
note_url
}
): "
discussion_info
<<
" (+
#{
other_note_count
}
#{
'comment'
.
pluralize
(
other_note_count
)
}
)"
if
other_note_count
>
0
note_without_block_quotes
=
Banzai
::
Filter
::
BlockquoteFenceFilter
.
new
(
first_note
.
note
).
call
...
...
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