Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2017-03-02 11:40:01 +0300
committerBob Van Landuyt <bob@gitlab.com>2017-03-13 10:27:51 +0300
commitf0dd2a54b31b46e2fa22a4041d902c7d9cc9c4dc (patch)
tree87aa7b51d343935e935b56c14fc56aba06faf8b2 /app/services/issues
parent40be92e74c60262b5ed92064fe42a27eac88f1c3 (diff)
Link 'discussion' instead of date
Since the date would be wrong for people in different timezones.
Diffstat (limited to 'app/services/issues')
-rw-r--r--app/services/issues/build_service.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/services/issues/build_service.rb b/app/services/issues/build_service.rb
index 5f303b73d16..b2b72e84b75 100644
--- a/app/services/issues/build_service.rb
+++ b/app/services/issues/build_service.rb
@@ -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