FEATURE: New plugin outlets for categories-boxes template (#15771)

Adds new category-box-before-each-box and category-box-after-each-box outlets to improve flexibility with customizations.
This commit is contained in:
tshenry 2022-02-01 19:53:02 -08:00 committed by GitHub
parent eff0106efb
commit 3da6f6b717
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,5 @@
{{#each categories as |c|}}
{{plugin-outlet name="category-box-before-each-box" args=(hash category=c)}}
<div style={{unless noCategoryStyle (border-color c.color)}} data-category-id={{c.id}} data-notification-level={{c.notificationLevelString}} data-url={{c.url}} class="category category-box category-box-{{c.slug}} {{if c.isMuted "muted"}} {{if noCategoryStyle "no-category-boxes-style"}}">
<div class="category-box-inner">
{{#unless c.isMuted}}
@ -73,4 +74,5 @@
{{plugin-outlet name="category-box-below-each-category" args=(hash category=c)}}
</div>
</div>
{{plugin-outlet name="category-box-after-each-box" args=(hash category=c)}}
{{/each}}