Hide some values from the topic map if they're 0

This commit is contained in:
Robin Ward 2013-11-19 12:24:41 -05:00
parent 20e4a2ef80
commit b98456a65f
1 changed files with 8 additions and 4 deletions

View File

@ -32,14 +32,18 @@
<h4>{{i18n participants}}</h4>
{{number topic.participant_count}}
</li>
{{#if topic.like_count}}
<li>
<h4>{{i18n likes}}</h4>
<i class='icon icon-heart'></i> {{number topic.like_count}}
</li>
{{/if}}
{{#if details.links.length}}
<li>
<h4>{{i18n links}}</h4>
{{number details.links.length}}
</li>
{{/if}}
<li {{bindAttr class=":avatars mapCollapsed::hidden"}}>
{{#groupedEach participant in details.fewParticipants}}{{topic-participant participant=participant}}{{/groupedEach}}
</li>