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