{{custom-html "top"}} {{global-notice}} {{discourse-banner user=currentUser banner=site.banner overlay=view.hasScrolled hide=errorLoading}}
{{#if postStream.loaded}} {{#if postStream.firstPostPresent}}
{{#if editingTopic}} {{#if isPrivateMessage}} {{fa-icon "envelope"}} {{autofocus-text-field id='edit-title' value=buffered.title maxLength=maxTitleLength}} {{else}} {{autofocus-text-field id='edit-title' value=buffered.title maxLength=maxTitleLength}}
{{category-chooser valueAttribute="id" value=buffered.category_id source=buffered.category_id}} {{/if}} {{plugin-outlet "edit-topic"}} {{d-button action="finishedEditingTopic" class="btn-primary btn-small no-text" icon="check"}} {{d-button action="cancelEditingTopic" class="btn-small no-text" icon="times"}} {{else}}

{{#unless is_warning}} {{fa-icon "envelope"}} {{/unless}} {{#if details.loaded}} {{topic-status topic=model}} {{{fancy_title}}} {{/if}} {{#if details.can_edit}} {{fa-icon "pencil"}} {{/if}}

{{#unless isPrivateMessage}} {{#if category.parentCategory}} {{bound-category-link category.parentCategory}} {{/if}} {{bound-category-link category hideParent=true}} {{plugin-outlet "topic-category"}} {{/unless}} {{/if}}
{{plugin-outlet "topic-title"}}
{{/if}}
{{view "selected-posts"}}
{{render 'topic-progress'}} {{loading-spinner condition=postStream.loadingAbove}} {{#unless postStream.loadingFilter}} {{cloaked-collection itemViewClass="post" idProperty="post_number" defaultHeight="200" content=postStream.posts slackRatio="15" loadingHTML="" preservesContext="true" uncloakDefault="true" offsetFixedTop="header" offsetFixedBottom="#reply-control"}} {{/unless}} {{loading-spinner condition=postStream.loadingBelow}}
{{#loading-spinner condition=postStream.loadingFilter}} {{#if loadedAllPosts}} {{view 'topic-closing' topic=model}} {{view 'topic-footer-buttons' topic=model}} {{#if details.suggested_topics.length}}

{{i18n 'suggested_topics.title'}}

{{basic-topic-list topics=details.suggested_topics postsAction="showTopicEntrance"}}

{{{view.browseMoreMessage}}}

{{/if}} {{/if}} {{/loading-spinner}}
{{else}}
{{#loading-spinner condition=noErrorYet}} {{#if notFoundHtml}} {{{notFoundHtml}}} {{else}}
{{message}}
{{#if noRetry}} {{#unless currentUser}} {{d-button action="showLogin" class="btn-primary topic-retry" icon="user" label="log_in"}} {{/unless}} {{else}} {{d-button action="retryLoading" class="btn-primary topic-retry" icon="refresh" label="errors.buttons.again"}} {{/if}}
{{loading-spinner condition=retrying}} {{/if}} {{/loading-spinner}}
{{/if}} {{render "share"}} {{#if currentUser.enable_quoting}} {{render "quote-button"}} {{/if}} {{#if currentUser.canManageTopic}} {{show-topic-admin show="showTopicAdminMenu"}} {{render "topic-admin-menu"}} {{/if}}