Hide some values from the topic map if they're 0
This commit is contained in:
parent
20e4a2ef80
commit
b98456a65f
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue