From c0780434f878186e928fe5406733091710806cf7 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 29 Mar 2019 16:59:00 -0400 Subject: [PATCH] FIX: Better display if the topic is deleted --- .../components/reviewable-topic-link.hbs | 24 +++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/app/assets/javascripts/discourse/templates/components/reviewable-topic-link.hbs b/app/assets/javascripts/discourse/templates/components/reviewable-topic-link.hbs index 6ce59f54924..d13f72a37f0 100644 --- a/app/assets/javascripts/discourse/templates/components/reviewable-topic-link.hbs +++ b/app/assets/javascripts/discourse/templates/components/reviewable-topic-link.hbs @@ -1,10 +1,14 @@ -
- {{#if topic}} - {{i18n "review.topic"}} - {{topic-status topic=topic}} - {{topic-link topic}} - {{i18n "review.topic_replies" count=topic.reply_count}} - {{else}} - {{yield}} - {{/if}} -
+{{#if topic}} +
+ {{#if topic}} + {{i18n "review.topic"}} + {{topic-status topic=topic}} + {{topic-link topic}} + {{i18n "review.topic_replies" count=topic.reply_count}} + {{else}} + {{yield}} + {{/if}} +
+{{else}} + {{i18n "topic.deleted"}} +{{/if}}