{{custom-html "top"}} {{global-notice}} {{#if model}} {{discourse-banner user=currentUser banner=site.banner overlay=view.hasScrolled hide=model.errorLoading}} {{/if}}
{{plugin-outlet "topic-above-post-stream"}} {{#if model.postStream.loaded}} {{#if model.postStream.firstPostPresent}}
{{#if editingTopic}} {{#if model.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 submit-edit" icon="check"}} {{d-button action="cancelEditingTopic" class="btn-small no-text cancel-edit" icon="times"}} {{else}}

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

{{#unless model.isPrivateMessage}} {{topic-category topic=model}} {{/unless}} {{/if}}
{{plugin-outlet "topic-title"}}
{{/if}}
{{view "selected-posts"}}
{{render 'topic-progress'}} {{conditional-loading-spinner condition=model.postStream.loadingAbove}} {{#unless model.postStream.loadingFilter}} {{cloaked-collection itemViewClass="post" idProperty="post_number" defaultHeight="200" content=model.postStream.posts slackRatio="15" loadingHTML="" preservesContext="true" uncloakDefault="true" offsetFixedTop="header" offsetFixedBottom="#reply-control"}} {{/unless}} {{conditional-loading-spinner condition=model.postStream.loadingBelow}}
{{#conditional-loading-spinner condition=model.postStream.loadingFilter}} {{#if loadedAllPosts}} {{view 'topic-closing' topic=model}} {{view 'topic-footer-buttons' topic=model}} {{#if model.pending_posts_count}}
{{{i18n "queue.has_pending_posts" count=model.pending_posts_count}}} {{#link-to 'queued-posts'}} {{fa-icon 'check'}} {{i18n 'queue.view_pending'}} {{/link-to}}
{{/if}} {{plugin-outlet "topic-above-suggested"}} {{#if model.details.suggested_topics.length}}

{{i18n 'suggested_topics.title'}}

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

{{{view.browseMoreMessage}}}

{{/if}} {{/if}} {{/conditional-loading-spinner}}
{{else}}
{{#conditional-loading-spinner condition=noErrorYet}} {{#if model.notFoundHtml}} {{{model.notFoundHtml}}} {{else}}
{{model.message}}
{{#if model.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}}
{{conditional-loading-spinner condition=retrying}} {{/if}} {{/conditional-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}}