Skip to content

A platform for community discussion. Free, open, simple.

FIX: Better display if the topic is deleted

Robin Wardc0780434f878
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 @@
-<div class='post-topic'>
- {{#if topic}}
- {{i18n "review.topic"}}
- {{topic-status topic=topic}}
- {{topic-link topic}}
- {{i18n "review.topic_replies" count=topic.reply_count}}
- {{else}}
- {{yield}}
- {{/if}}
-</div>
+{{#if topic}}
+ <div class='post-topic'>
+ {{#if topic}}
+ {{i18n "review.topic"}}
+ {{topic-status topic=topic}}
+ {{topic-link topic}}
+ {{i18n "review.topic_replies" count=topic.reply_count}}
+ {{else}}
+ {{yield}}
+ {{/if}}
+ </div>
+{{else}}
+ {{i18n "topic.deleted"}}
+{{/if}}