mirror of
https://github.com/discourse/discourse.git
synced 2025-01-16 05:32:41 +08:00
DEV: Add subcategories with featured topics list plugin outlet (#30538)
This adds plugin outlets for mobile and desktop views of the subcategories with featured topics list.
This commit is contained in:
parent
6c7eaf99af
commit
13b9493bf0
|
@ -1,5 +1,9 @@
|
|||
{{#each this.categories as |category|}}
|
||||
{{#if this.site.mobileView}}
|
||||
<PluginOutlet
|
||||
@name="mobile-subcategories-with-featured-topics-list"
|
||||
@outletArgs={{hash category=category}}
|
||||
>
|
||||
<div class="category-list subcategory-list with-topics">
|
||||
<div class="parent-category">
|
||||
<CategoryTitleLink @category={{category}} />
|
||||
|
@ -16,7 +20,12 @@
|
|||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
</PluginOutlet>
|
||||
{{else}}
|
||||
<PluginOutlet
|
||||
@name="subcategories-with-featured-topics-list"
|
||||
@outletArgs={{hash category=category}}
|
||||
>
|
||||
<table class="category-list subcategory-list with-topics">
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -39,5 +48,6 @@
|
|||
{{/each}}
|
||||
</tbody>
|
||||
</table>
|
||||
</PluginOutlet>
|
||||
{{/if}}
|
||||
{{/each}}
|
Loading…
Reference in New Issue
Block a user