From b98456a65f39bdb2515a929c87df2e3a522c709d Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 19 Nov 2013 12:24:41 -0500 Subject: [PATCH] Hide some values from the topic map if they're 0 --- .../templates/components/topic-map.js.handlebars | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/discourse/templates/components/topic-map.js.handlebars b/app/assets/javascripts/discourse/templates/components/topic-map.js.handlebars index 4fb64ede697..cf41fb095eb 100644 --- a/app/assets/javascripts/discourse/templates/components/topic-map.js.handlebars +++ b/app/assets/javascripts/discourse/templates/components/topic-map.js.handlebars @@ -32,14 +32,18 @@

{{i18n participants}}

{{number topic.participant_count}} -
  • -

    {{i18n likes}}

    - {{number topic.like_count}} -
  • + {{#if topic.like_count}} +
  • +

    {{i18n likes}}

    + {{number topic.like_count}} +
  • + {{/if}} + {{#if details.links.length}}
  • {{i18n links}}

    {{number details.links.length}}
  • + {{/if}}
  • {{#groupedEach participant in details.fewParticipants}}{{topic-participant participant=participant}}{{/groupedEach}}