From 3db3ee65b7dca6f0d7cfca14f3487d40fcf5efb0 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Mon, 16 Jan 2017 11:53:09 -0500 Subject: [PATCH] UX: Make it easier for plugins to add stuff before topics on the list --- .../templates/list/topic-list-item.raw.hbs | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/app/assets/javascripts/discourse/templates/list/topic-list-item.raw.hbs b/app/assets/javascripts/discourse/templates/list/topic-list-item.raw.hbs index bd444a8e55c..05b387b719a 100644 --- a/app/assets/javascripts/discourse/templates/list/topic-list-item.raw.hbs +++ b/app/assets/javascripts/discourse/templates/list/topic-list-item.raw.hbs @@ -5,15 +5,19 @@ {{/if}} - {{raw "topic-status" topic=topic}} - {{topic-link topic}} - {{#if topic.featured_link}} - {{topic-featured-link topic}} - {{/if}} - {{raw-plugin-outlet name="topic-list-after-title"}} - {{#if showTopicPostBadges}} - {{raw "topic-post-badges" unread=topic.unread newPosts=topic.displayNewPosts unseen=topic.unseen url=topic.lastUnreadUrl}} - {{/if}} + + {{raw-plugin-outlet name="topic-list-before-status"}} + {{raw "topic-status" topic=topic}} + {{topic-link topic}} + {{#if topic.featured_link}} + {{topic-featured-link topic}} + {{/if}} + {{raw-plugin-outlet name="topic-list-after-title"}} + {{#if showTopicPostBadges}} + {{raw "topic-post-badges" unread=topic.unread newPosts=topic.displayNewPosts unseen=topic.unseen url=topic.lastUnreadUrl}} + {{/if}} + + {{#if topic.tags}}
{{#each topic.visibleListTags as |tag|}}