mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Added Participants, Likes to Topic Map
This commit is contained in:
@@ -28,6 +28,14 @@
|
||||
<h4>{{i18n views}}</h4>
|
||||
{{number topic.views}}
|
||||
</li>
|
||||
<li>
|
||||
<h4>{{i18n participants}}</h4>
|
||||
{{number topic.participant_count}}
|
||||
</li>
|
||||
<li>
|
||||
<h4>{{i18n likes}}</h4>
|
||||
<i class='icon icon-heart'></i> {{number topic.like_count}}
|
||||
</li>
|
||||
<li>
|
||||
<h4>{{i18n links}}</h4>
|
||||
{{number details.links.length}}
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
{{/discourse-heading}}
|
||||
{{/unless}}
|
||||
{{#discourse-heading sortBy="posters" sortOrder=sortOrder}}
|
||||
{{i18n top_contributors}}
|
||||
{{i18n participants}}
|
||||
{{/discourse-heading}}
|
||||
{{#discourse-heading sortBy="posts" number=true sortOrder=sortOrder}}
|
||||
{{i18n posts}}
|
||||
|
||||
@@ -12,6 +12,8 @@ class TopicViewSerializer < ApplicationSerializer
|
||||
:created_at,
|
||||
:views,
|
||||
:reply_count,
|
||||
:participant_count,
|
||||
:like_count,
|
||||
:last_posted_at,
|
||||
:visible,
|
||||
:closed,
|
||||
|
||||
Reference in New Issue
Block a user