DEV: Wrap user summary category rows in plugin outlet (#25466)

This commit is contained in:
Mark VanLandingham 2024-01-29 15:48:36 -06:00 committed by GitHub
parent 2558543794
commit f6becaa0b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 26 additions and 21 deletions

View File

@ -239,27 +239,32 @@
<tbody>
{{#each this.model.top_categories as |category|}}
<tr>
<td class="category-link">
{{category-link
category
allowUncategorized="true"
hideParent=false
}}
</td>
<td class="topic-count">
<UserSummaryCategorySearch
@user={{this.user}}
@category={{category}}
@count={{category.topic_count}}
/>
</td>
<td class="reply-count">
<UserSummaryCategorySearch
@user={{this.user}}
@category={{category}}
@count={{category.post_count}}
/>
</td>
<PluginOutlet
@name="user-summary-top-category-row"
@outletArgs={{hash category=category user=this.user}}
>
<td class="category-link">
{{category-link
category
allowUncategorized="true"
hideParent=false
}}
</td>
<td class="topic-count">
<UserSummaryCategorySearch
@user={{this.user}}
@category={{category}}
@count={{category.topic_count}}
/>
</td>
<td class="reply-count">
<UserSummaryCategorySearch
@user={{this.user}}
@category={{category}}
@count={{category.post_count}}
/>
</td>
</PluginOutlet>
</tr>
{{/each}}
</tbody>