This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/templates/components/reviewable-topic-link.hbs
Roman Rizzi 82e051077d Show link to the original topic when it was deleted (#7319)
* Moved i18n keys to core. We show a links that points to the original topic when it was deleted

* Use link-to since it's more idiomatic
2019-04-10 11:25:45 +02:00

16 lines
527 B
Handlebars

<div class='post-topic'>
{{#if reviewable.topic}}
{{topic-status topic=reviewable.topic}}
<a href={{reviewable.topic_url}} class='title-text'>{{reviewable.topic.title}}</a>
{{category-badge reviewable.category}}
{{reviewable-tags tags=reviewable.topic_tags tagName=''}}
{{else if (has-block)}}
{{yield}}
{{else}}
<span class="title-text">
{{i18n "review.topics.deleted"}}
{{link-to (i18n "review.topics.original") "topic" "-" reviewable.removed_topic_id}}
</span>
{{/if}}
</div>