DEV: Update/add plugin outlets to ParentCategoryRow to remove template overrides (#31395)

Description

We need to add these plugin modifiers as part of changes made to remove
template overrides
This commit is contained in:
Juan David Martínez Cubillos 2025-02-20 15:40:00 -05:00 committed by GitHub
parent d1f3b2fc45
commit 006b5b13d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,6 +25,10 @@
<th class="main-link">
<CategoryTitleLink @category={{this.category}} />
</th>
<PluginOutlet
@name="category-list-after-title-mobile-section"
@outletArgs={{hash category=this.category}}
/>
</tr>
{{#if this.category.description_excerpt}}
<tr class="category-description">
@ -165,41 +169,51 @@
@outletArgs={{hash category=this.category}}
/>
<td class="topics">
<div title={{this.category.statTitle}}>{{html-safe
this.category.stat
}}</div>
<CategoryUnread
@category={{this.category}}
@tagName="div"
@unreadTopicsCount={{this.unreadTopicsCount}}
@newTopicsCount={{this.newTopicsCount}}
class="unread-new"
/>
</td>
<PluginOutlet
@name="category-list-topics-wrapper"
@outletArgs={{hash category=this.category}}
>
<td class="topics">
<div title={{this.category.statTitle}}>{{html-safe
this.category.stat
}}</div>
<CategoryUnread
@category={{this.category}}
@tagName="div"
@unreadTopicsCount={{this.unreadTopicsCount}}
@newTopicsCount={{this.newTopicsCount}}
class="unread-new"
/>
</td>
</PluginOutlet>
<PluginOutlet
@name="category-list-after-topics-section"
@outletArgs={{hash category=this.category}}
/>
{{#unless this.isMuted}}
{{#if this.showTopics}}
<td class="latest">
{{#each this.category.featuredTopics as |t|}}
{{#if this.site.useGlimmerTopicList}}
<TopicList::FeaturedTopic @topic={{t}} />
{{else}}
<FeaturedTopic @topic={{t}} />
{{/if}}
{{/each}}
</td>
<PluginOutlet
@name="category-list-after-latest-section"
@outletArgs={{hash category=this.category}}
/>
{{/if}}
{{/unless}}
<PluginOutlet
@name="category-list-latest-wrapper"
@outletArgs={{hash category=this.category showTopics=this.showTopics}}
>
{{#unless this.isMuted}}
{{#if this.showTopics}}
<td class="latest">
{{#each this.category.featuredTopics as |t|}}
{{#if this.site.useGlimmerTopicList}}
<TopicList::FeaturedTopic @topic={{t}} />
{{else}}
<FeaturedTopic @topic={{t}} />
{{/if}}
{{/each}}
</td>
<PluginOutlet
@name="category-list-after-latest-section"
@outletArgs={{hash category=this.category}}
/>
{{/if}}
{{/unless}}
</PluginOutlet>
</tr>
{{/if}}
{{/unless}}