FEATURE: show topics viewed on user summary
This commit is contained in:
parent
7c6f991313
commit
6dda87c49b
|
@ -13,6 +13,9 @@
|
|||
{{user-stat value=recentTimeRead label="user.summary.recent_time_read" type="string"}}
|
||||
</li>
|
||||
{{/if}}
|
||||
<li>
|
||||
{{user-stat value=model.topics_entered label="user.summary.topics_entered"}}
|
||||
</li>
|
||||
<li>
|
||||
{{user-stat value=model.posts_read_count label="user.summary.posts_read"}}
|
||||
</li>
|
||||
|
|
|
@ -158,6 +158,7 @@ class UserSummary
|
|||
delegate :likes_given,
|
||||
:likes_received,
|
||||
:days_visited,
|
||||
:topics_entered,
|
||||
:posts_read_count,
|
||||
:topic_count,
|
||||
:post_count,
|
||||
|
|
|
@ -32,6 +32,7 @@ class UserSummarySerializer < ApplicationSerializer
|
|||
|
||||
attributes :likes_given,
|
||||
:likes_received,
|
||||
:topics_entered,
|
||||
:posts_read_count,
|
||||
:days_visited,
|
||||
:topic_count,
|
||||
|
|
|
@ -914,6 +914,9 @@ en:
|
|||
days_visited:
|
||||
one: "day visited"
|
||||
other: "days visited"
|
||||
topics_entered:
|
||||
one: "topic viewed"
|
||||
other: "topics viewed"
|
||||
posts_read:
|
||||
one: "post read"
|
||||
other: "posts read"
|
||||
|
|
Loading…
Reference in New Issue