{{#d-section tagName="" pageClass="tags" bodyClass=(concat "tag-" tag.id (if category.slug (concat " category-" category.slug)) ""  (if additionalTags " tags-intersection"))}}
  <div class="container">
    {{discourse-banner user=currentUser banner=site.banner}}
  </div>

  <div class="list-controls">
    <div class="container">
      <section class="navigation-container tag-navigation">
        {{d-navigation
          filterMode=filterMode
          canCreateTopic=canCreateTopic
          hasDraft=currentUser.has_topic_draft
          createTopic=(route-action "createTopic")
          category=category
          tag=tag
          noSubcategories=noSubcategories
          tagNotification=tagNotification
          additionalTags=additionalTags
          showInfo=showInfo
          canCreateTopicOnTag=canCreateTopicOnTag
          changeTagNotificationLevel=(action "changeTagNotificationLevel")
          toggleInfo=(action "toggleInfo")
        }}

        {{plugin-outlet
          name="tag-navigation"
          args=(hash category=category tag=tag)
          tagName=""
        }}
      </section>
    </div>
  </div>

  {{#if showInfo}}
    {{tag-info tag=tag list=list deleteAction=(action "deleteTag")}}
  {{/if}}

  {{plugin-outlet name="discovery-list-container-top" args=(hash category=category)}}

  {{#if showDismissAtTop}}
    <div class="row dismiss-container-top">
      {{#if showDismissRead}}
        {{d-button
          class="btn-default dismiss-read"
          id="dismiss-topics"
          action=(action "dismissReadPosts")
          title="topics.bulk.dismiss_tooltip"
          label="topics.bulk.dismiss_button"
        }}
      {{/if}}

      {{#if showResetNew}}
        {{d-button
          class="btn-default dismiss-read"
          action=(action "resetNew")
          id="dismiss-new"
          icon="check"
          label="topics.bulk.dismiss_new"
        }}
      {{/if}}
    </div>
  {{/if}}

  <div class="container list-container">
    <div class="row">
      <div class="full-width">
        <div id="list-area">
          {{#unless loading}}
            {{#if list.topics}}
              {{#discovery-topics-list
                model=list
                refresh=(action "refresh")
                autoAddTopicsToBulkSelect=autoAddTopicsToBulkSelect
                bulkSelectEnabled=bulkSelectEnabled
                addTopicsToBulkSelect=(action "addTopicsToBulkSelect")
                as |discoveryTopicList|
              }}
                {{bulk-select-button
                  selected=selected
                  action=(action "refresh")
                  category=category
                }}

                {{topic-list
                  topics=list.topics
                  canBulkSelect=canBulkSelect
                  toggleBulkSelect=(action "toggleBulkSelect")
                  bulkSelectEnabled=bulkSelectEnabled
                  updateAutoAddTopicsToBulkSelect=(action "updateAutoAddTopicsToBulkSelect")
                  selected=selected
                  showPosters=true
                  order=order
                  ascending=ascending
                  changeSort=(action "changeSort")
                  onScroll=discoveryTopicList.saveScrollPosition
                  scrollOnLoad=true
                }}
              {{/discovery-topics-list}}
            {{/if}}

            <footer class="topic-list-bottom">
              {{#if showDismissRead}}
                {{d-button
                  class="btn-default dismiss-read"
                  id="dismiss-topics"
                  action=(action "dismissReadPosts")
                  title="topics.bulk.dismiss_tooltip"
                  label="topics.bulk.dismiss_button"
                }}
              {{/if}}

              {{#if showResetNew}}
                {{d-button
                  class="btn-default dismiss-read"
                  action=(action "resetNew")
                  id="dismiss-new"
                  icon="check"
                  label="topics.bulk.dismiss_new"
                }}
              {{/if}}

              {{#footer-message education=footerEducation message=footerMessage}}
                {{#link-to "tags"}} {{i18n "topic.browse_all_tags"}}{{/link-to}} {{i18n "or"}} {{#link-to "discovery.latest"}}{{i18n "topic.view_latest_topics"}}{{/link-to}}.
              {{/footer-message}}
            </footer>
          {{/unless}}

          {{conditional-loading-spinner condition=list.loadingMore}}
        </div>
      </div>
    </div>
  </div>

  {{plugin-outlet name="discovery-below"}}
{{/d-section}}
