diff --git a/app/assets/javascripts/discourse/templates/user/summary.hbs b/app/assets/javascripts/discourse/templates/user/summary.hbs index e69a785b12c..695cbf1c013 100644 --- a/app/assets/javascripts/discourse/templates/user/summary.hbs +++ b/app/assets/javascripts/discourse/templates/user/summary.hbs @@ -13,6 +13,9 @@ {{user-stat value=recentTimeRead label="user.summary.recent_time_read" type="string"}} {{/if}} +
  • + {{user-stat value=model.topics_entered label="user.summary.topics_entered"}} +
  • {{user-stat value=model.posts_read_count label="user.summary.posts_read"}}
  • diff --git a/app/models/user_summary.rb b/app/models/user_summary.rb index 86d940a97a1..6eb177382d0 100644 --- a/app/models/user_summary.rb +++ b/app/models/user_summary.rb @@ -158,6 +158,7 @@ class UserSummary delegate :likes_given, :likes_received, :days_visited, + :topics_entered, :posts_read_count, :topic_count, :post_count, diff --git a/app/serializers/user_summary_serializer.rb b/app/serializers/user_summary_serializer.rb index 4a61538d918..d4c3ba976ab 100644 --- a/app/serializers/user_summary_serializer.rb +++ b/app/serializers/user_summary_serializer.rb @@ -32,6 +32,7 @@ class UserSummarySerializer < ApplicationSerializer attributes :likes_given, :likes_received, + :topics_entered, :posts_read_count, :days_visited, :topic_count, diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index 3ddc814f7e9..62d2eb2e8b2 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -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"