mirror of
https://github.com/discourse/discourse.git
synced 2025-06-10 17:33:42 +08:00
FEATURE: show topics viewed on user summary
This commit is contained in:
@ -13,6 +13,9 @@
|
|||||||
{{user-stat value=recentTimeRead label="user.summary.recent_time_read" type="string"}}
|
{{user-stat value=recentTimeRead label="user.summary.recent_time_read" type="string"}}
|
||||||
</li>
|
</li>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
<li>
|
||||||
|
{{user-stat value=model.topics_entered label="user.summary.topics_entered"}}
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
{{user-stat value=model.posts_read_count label="user.summary.posts_read"}}
|
{{user-stat value=model.posts_read_count label="user.summary.posts_read"}}
|
||||||
</li>
|
</li>
|
||||||
|
@ -158,6 +158,7 @@ class UserSummary
|
|||||||
delegate :likes_given,
|
delegate :likes_given,
|
||||||
:likes_received,
|
:likes_received,
|
||||||
:days_visited,
|
:days_visited,
|
||||||
|
:topics_entered,
|
||||||
:posts_read_count,
|
:posts_read_count,
|
||||||
:topic_count,
|
:topic_count,
|
||||||
:post_count,
|
:post_count,
|
||||||
|
@ -32,6 +32,7 @@ class UserSummarySerializer < ApplicationSerializer
|
|||||||
|
|
||||||
attributes :likes_given,
|
attributes :likes_given,
|
||||||
:likes_received,
|
:likes_received,
|
||||||
|
:topics_entered,
|
||||||
:posts_read_count,
|
:posts_read_count,
|
||||||
:days_visited,
|
:days_visited,
|
||||||
:topic_count,
|
:topic_count,
|
||||||
|
@ -914,6 +914,9 @@ en:
|
|||||||
days_visited:
|
days_visited:
|
||||||
one: "day visited"
|
one: "day visited"
|
||||||
other: "days visited"
|
other: "days visited"
|
||||||
|
topics_entered:
|
||||||
|
one: "topic viewed"
|
||||||
|
other: "topics viewed"
|
||||||
posts_read:
|
posts_read:
|
||||||
one: "post read"
|
one: "post read"
|
||||||
other: "posts read"
|
other: "posts read"
|
||||||
|
Reference in New Issue
Block a user