From 0c2d20a5234c40fd9c731a225a4d2e02ae7cd328 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Sun, 13 Aug 2017 13:19:27 -0400 Subject: [PATCH] Split out `latest-topic-list-contents` component --- .../templates/components/latest-topic-list-contents.hbs | 3 +++ .../discourse/templates/components/latest-topic-list.hbs | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 app/assets/javascripts/discourse/templates/components/latest-topic-list-contents.hbs diff --git a/app/assets/javascripts/discourse/templates/components/latest-topic-list-contents.hbs b/app/assets/javascripts/discourse/templates/components/latest-topic-list-contents.hbs new file mode 100644 index 00000000000..33b8ec95b90 --- /dev/null +++ b/app/assets/javascripts/discourse/templates/components/latest-topic-list-contents.hbs @@ -0,0 +1,3 @@ +{{#each topics as |t|}} + {{latest-topic-list-item topic=t}} +{{/each}} diff --git a/app/assets/javascripts/discourse/templates/components/latest-topic-list.hbs b/app/assets/javascripts/discourse/templates/components/latest-topic-list.hbs index fa79f98fb93..2390a154ab4 100644 --- a/app/assets/javascripts/discourse/templates/components/latest-topic-list.hbs +++ b/app/assets/javascripts/discourse/templates/components/latest-topic-list.hbs @@ -3,9 +3,7 @@ {{#if topics}} - {{#each topics as |t|}} - {{latest-topic-list-item topic=t}} - {{/each}} + {{latest-topic-list-contents topics=topics tagName=""}}
{{i18n "more"}}