mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
parent
eff0106efb
commit
3da6f6b717
@ -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}}
|
||||
|
Loading…
Reference in New Issue
Block a user