From 0c6e5befe462a233fb52570b5d6b7e86bcd2b697 Mon Sep 17 00:00:00 2001 From: Erick Guan <fantasticfears@gmail.com> Date: Tue, 16 Feb 2016 12:37:59 +0100 Subject: [PATCH] FIX: topic summary description text was conflicts with reply counter --- .../discourse/templates/components/toggle-summary.hbs | 4 ++-- config/locales/client.en.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/discourse/templates/components/toggle-summary.hbs b/app/assets/javascripts/discourse/templates/components/toggle-summary.hbs index 6eed02a1c..671b85d94 100644 --- a/app/assets/javascripts/discourse/templates/components/toggle-summary.hbs +++ b/app/assets/javascripts/discourse/templates/components/toggle-summary.hbs @@ -3,9 +3,9 @@ <button class='btn btn-primary' {{action "toggleSummary"}}>{{i18n 'summary.disable'}}</button> {{else}} {{#if topic.estimatedReadingTime}} - <p>{{{i18n 'summary.description_time' count=topic.posts_count readingTime=topic.estimatedReadingTime}}}</p> + <p>{{{i18n 'summary.description_time' replyCount=topic.replyCount readingTime=topic.estimatedReadingTime}}}</p> {{else}} - <p>{{{i18n 'summary.description' count=topic.posts_count}}}</p> + <p>{{{i18n 'summary.description' replyCount=topic.replyCount}}}</p> {{/if}} <button class='btn btn-primary' {{action "toggleSummary"}}>{{i18n 'summary.enable'}}</button> diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index cfab4a6dc..cdb5b7bc8 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -804,8 +804,8 @@ en: summary: enabled_description: "You're viewing a summary of this topic: the most interesting posts as determined by the community." - description: "There are <b>{{count}}</b> replies." - description_time: "There are <b>{{count}}</b> replies with an estimated read time of <b>{{readingTime}} minutes</b>." + description: "There are <b>{{replyCount}}</b> replies." + description_time: "There are <b>{{replyCount}}</b> replies with an estimated read time of <b>{{readingTime}} minutes</b>." enable: 'Summarize This Topic' disable: 'Show All Posts'