UX: show replies in shortened form (#187)
 
This commit is contained in:
@@ -1,9 +1,12 @@
|
|||||||
import { gt } from "truth-helpers";
|
import { gt } from "truth-helpers";
|
||||||
import icon from "discourse/helpers/d-icon";
|
import icon from "discourse/helpers/d-icon";
|
||||||
|
import number from "discourse/helpers/number";
|
||||||
|
|
||||||
const TopicRepliesColumn = <template>
|
const TopicRepliesColumn = <template>
|
||||||
{{#if (gt @topic.replyCount 1)}}
|
{{#if (gt @topic.replyCount 1)}}
|
||||||
<span class="topic-replies">{{icon "reply"}}{{@topic.posts_count}}</span>
|
<span class="topic-replies">{{icon "reply"}}{{number
|
||||||
|
@topic.posts_count
|
||||||
|
}}</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</template>;
|
</template>;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user