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

View File

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