{{add-category-tag-classes category=category tagName=""}}

<section class="category-heading">
  {{#if category.uploaded_logo.url}}
    {{cdn-img
      src=category.uploaded_logo.url
      class="category-logo"
      width=category.uploaded_logo.width
      height=category.uploaded_logo.height
      alt=""
    }}

    {{#if category.description}}
      <p>{{dir-span category.description}}</p>
    {{/if}}
  {{/if}}

  {{plugin-outlet name="category-heading" args=(hash category=category)}}
</section>

{{#d-section class="navigation-container category-navigation"}}
  {{d-navigation
    category=category
    filterMode=filterMode
    noSubcategories=noSubcategories
    canCreateTopic=canCreateTopic
    createTopic=(route-action "createTopic")
    createTopicDisabled=cannotCreateTopicOnCategory
    hasDraft=currentUser.has_topic_draft
    editCategory=(route-action "editCategory" category)
  }}

  {{plugin-outlet
    name="category-navigation"
    args=(hash category=category)
    tagName=""
  }}
{{/d-section}}
