{{#unless loading}}
  {{#if loaded}}
    <div class='contents'>
      {{#if view.showTable}}
        {{#if canViewRankDetails}}
          <button class='btn' {{action toggleRankDetails}} style='margin-bottom: 10px'>
            <i class='icon icon-beaker'></i>
            {{i18n rank_details.toggle}}
          </button>
        {{/if}}

        <table id='topic-list'>

          {{#if view.topicTrackingState.hasIncoming}}
            <tbody>
              <tr>
                <td>
                  <div class='alert alert-info'>
                    {{countI18n new_topics_inserted countBinding="view.topicTrackingState.incomingCount"}}
                    <a href='#' {{action showInserted}}>{{i18n show_new_topics}}</a>
                  </div>
                </td>
              </tr>
            </tbody>
          {{/if}}

          {{collection contentBinding="topics" tagName="tbody" itemViewClass="Discourse.TopicListItemView"}}

        </table>
      {{/if}}
    </div>

    <footer id='topic-list-bottom'>
      {{#if loadingMore}}
        <div class='topics-loading'>{{i18n topic.loading_more}}</div>
      {{/if}}

      <h3>
        {{footerMessage}}
        {{#if allLoaded}}
          {{#if latest}}
            {{#if canCreateTopic}}
              <a href='#' {{action createTopic}}>{{i18n topic.suggest_create_topic}}</a>
            {{/if}}
          {{else}}
            {{#link-to 'list.categories'}}{{i18n topic.browse_all_categories}}{{/link-to}} {{i18n or}} {{#link-to 'list.latest'}}{{i18n topic.view_latest_topics}}{{/link-to}}
          {{/if}}
        {{/if}}
      </h3>
    </footer>

  {{/if}}
{{/unless}}
