mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Make category-navigation
outlet tagless (#12788)
This commit is contained in:
parent
f186ff99c8
commit
ad406b6e11
@ -1,22 +1,23 @@
|
|||||||
{{add-category-tag-classes category=category tagName=""}}
|
{{add-category-tag-classes category=category tagName=""}}
|
||||||
|
|
||||||
<section class="category-heading">
|
<section class="category-heading">
|
||||||
{{#if category.uploaded_logo.url}}
|
{{#if category.uploaded_logo.url}}
|
||||||
{{cdn-img
|
{{cdn-img
|
||||||
src=category.uploaded_logo.url
|
src=category.uploaded_logo.url
|
||||||
class="category-logo"
|
class="category-logo"
|
||||||
width=category.uploaded_logo.width
|
width=category.uploaded_logo.width
|
||||||
height=category.uploaded_logo.height}}
|
height=category.uploaded_logo.height
|
||||||
{{#if category.description}}
|
}}
|
||||||
<p>{{dir-span category.description}}</p>
|
|
||||||
{{/if}}
|
{{#if category.description}}
|
||||||
|
<p>{{dir-span category.description}}</p>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
{{plugin-outlet name="category-heading" args=(hash category=category)}}
|
{{plugin-outlet name="category-heading" args=(hash category=category)}}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{{#d-section class="navigation-container category-navigation"}}
|
{{#d-section class="navigation-container category-navigation"}}
|
||||||
|
|
||||||
{{d-navigation
|
{{d-navigation
|
||||||
category=category
|
category=category
|
||||||
filterMode=filterMode
|
filterMode=filterMode
|
||||||
@ -25,8 +26,12 @@
|
|||||||
createTopic=(route-action "createTopic")
|
createTopic=(route-action "createTopic")
|
||||||
createTopicDisabled=cannotCreateTopicOnCategory
|
createTopicDisabled=cannotCreateTopicOnCategory
|
||||||
hasDraft=currentUser.has_topic_draft
|
hasDraft=currentUser.has_topic_draft
|
||||||
editCategory=(route-action "editCategory" category)}}
|
editCategory=(route-action "editCategory" category)
|
||||||
|
}}
|
||||||
{{plugin-outlet name="category-navigation" args=(hash category=category)}}
|
|
||||||
|
|
||||||
|
{{plugin-outlet
|
||||||
|
name="category-navigation"
|
||||||
|
args=(hash category=category)
|
||||||
|
tagName=""
|
||||||
|
}}
|
||||||
{{/d-section}}
|
{{/d-section}}
|
||||||
|
Loading…
Reference in New Issue
Block a user