{{#if postStream.loaded}} {{#if postStream.firstPostLoaded}}
{{#if showFavoriteButton}} {{/if}} {{#if editingTopic}} {{textField id='edit-title' value=newTitle}} {{categoryChooser valueAttribute="id" value=newCategoryId source=category_id}} {{else}}

{{#if details.loaded}} {{topicStatus topic=model}} {{{fancy_title}}} {{/if}} {{categoryLink category}} {{#if details.can_edit}} {{/if}}

{{/if}}
{{/if}}
{{view Discourse.SelectedPostsView}}
{{#if postStream.loadingAbove}}
{{i18n loading}}
{{/if}} {{#unless postStream.loadingFilter}} {{collection itemViewClass="Discourse.PostView" contentBinding="postStream.posts" topicViewBinding="view"}} {{/unless}} {{#if postStream.loadingBelow}}
{{i18n loading}}
{{/if}}
{{#if postStream.loadingFilter}}
{{i18n loading}}
{{else}} {{#if postStream.lastPostLoaded}} {{view Discourse.TopicClosingView topicBinding="model"}} {{view Discourse.TopicFooterButtonsView topicBinding="model"}} {{#if details.suggested_topics.length}}

{{i18n suggested_topics.title}}

{{each details.suggested_topics itemTagName="tr" itemViewClass="Discourse.SuggestedTopicView"}}
{{i18n topic.title}} {{i18n category_title}} {{i18n posts}} {{i18n views}} {{i18n activity}}

{{{view.browseMoreMessage}}}

{{/if}} {{/if}} {{/if}}
{{else}} {{#if hasError}}
{{#if errorBodyHtml}} {{{errorBodyHtml}}} {{/if}} {{#if message}}

{{message}}

{{/if}}
{{else}}
{{i18n loading}}
{{/if}} {{/if}}
{{postStream.filterDesc}} {{i18n topic.filters.cancel}}
{{render share}} {{render quoteButton}} {{#if currentUser.staff}} {{render topicAdminMenu content}} {{/if}}