FEATURE: show topics viewed on user summary

This commit is contained in:
Neil Lalonde 2017-11-17 17:53:22 -05:00
parent 7c6f991313
commit 6dda87c49b
4 changed files with 8 additions and 0 deletions

View File

@ -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>

View File

@ -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,

View File

@ -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,

View File

@ -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"