From 0d9b99582d517c5031dddbfcf56a2fe0395a292e Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Mon, 10 Feb 2020 08:14:26 +0100 Subject: [PATCH] DEV: enforces table-groups linting rule (#8903) --- .template-lintrc.js | 1 + .../admin/templates/email-bounced.hbs | 60 +++---- .../admin/templates/email-index.hbs | 20 +-- .../admin/templates/email-received.hbs | 81 +++++----- .../admin/templates/email-rejected.hbs | 85 +++++----- .../admin/templates/email-sent.hbs | 76 ++++----- .../admin/templates/email-skipped.hbs | 68 ++++---- .../admin/templates/permalinks.hbs | 58 +++---- .../admin/templates/user-badges.hbs | 83 +++++----- .../javascripts/discourse/templates/about.hbs | 74 ++++----- .../templates/components/categories-only.hbs | 52 +++--- .../mobile/components/categories-only.hbs | 95 +++++------ .../templates/mobile/modal/login.hbs | 46 +++--- .../templates/modal/create-account.hbs | 150 +++++++++--------- .../templates/modal/explain-reviewable.hbs | 68 ++++---- .../discourse/templates/modal/login.hbs | 30 ++-- .../templates/preferences/account.hbs | 50 +++--- .../discourse/templates/user-invited-show.hbs | 106 +++++++------ 18 files changed, 614 insertions(+), 589 deletions(-) diff --git a/.template-lintrc.js b/.template-lintrc.js index d6276821591..e467fa2784d 100644 --- a/.template-lintrc.js +++ b/.template-lintrc.js @@ -4,6 +4,7 @@ module.exports = { rules: { "self-closing-void-elements": true, + "table-groups": true, "style-concatenation": true } }; diff --git a/app/assets/javascripts/admin/templates/email-bounced.hbs b/app/assets/javascripts/admin/templates/email-bounced.hbs index e8c7f9007f5..700f3907e99 100644 --- a/app/assets/javascripts/admin/templates/email-bounced.hbs +++ b/app/assets/javascripts/admin/templates/email-bounced.hbs @@ -8,38 +8,38 @@ {{i18n 'admin.email.email_type'}} - - - {{i18n 'admin.email.logs.filters.title'}} - {{text-field value=filter.user placeholderKey="admin.email.logs.filters.user_placeholder"}} - {{text-field value=filter.address placeholderKey="admin.email.logs.filters.address_placeholder"}} - {{text-field value=filter.type placeholderKey="admin.email.logs.filters.type_placeholder"}} - - - {{#each model as |l|}} - - {{format-date l.created_at}} - - {{#if l.user}} - {{#link-to 'adminUser' l.user}}{{avatar l.user imageSize="tiny"}}{{/link-to}} - {{#link-to 'adminUser' l.user}}{{l.user.username}}{{/link-to}} - {{else}} - — - {{/if}} - - {{l.to_address}} - {{#if l.has_bounce_key}} - {{l.email_type}} - {{else}} - {{l.email_type}} - {{/if}} + + + {{i18n 'admin.email.logs.filters.title'}} + {{text-field value=filter.user placeholderKey="admin.email.logs.filters.user_placeholder"}} + {{text-field value=filter.address placeholderKey="admin.email.logs.filters.address_placeholder"}} + {{text-field value=filter.type placeholderKey="admin.email.logs.filters.type_placeholder"}} - {{else}} - {{#unless loading}} - {{i18n 'admin.email.logs.none'}} - {{/unless}} - {{/each}} + {{#each model as |l|}} + + {{format-date l.created_at}} + + {{#if l.user}} + {{#link-to 'adminUser' l.user}}{{avatar l.user imageSize="tiny"}}{{/link-to}} + {{#link-to 'adminUser' l.user}}{{l.user.username}}{{/link-to}} + {{else}} + — + {{/if}} + + {{l.to_address}} + {{#if l.has_bounce_key}} + {{l.email_type}} + {{else}} + {{l.email_type}} + {{/if}} + + {{else}} + {{#unless loading}} + {{i18n 'admin.email.logs.none'}} + {{/unless}} + {{/each}} + {{/load-more}} diff --git a/app/assets/javascripts/admin/templates/email-index.hbs b/app/assets/javascripts/admin/templates/email-index.hbs index e817cb42223..200e8aad271 100644 --- a/app/assets/javascripts/admin/templates/email-index.hbs +++ b/app/assets/javascripts/admin/templates/email-index.hbs @@ -1,15 +1,17 @@ - - - - - - {{#each model.settings as |s|}} + - - + + - {{/each}} + + {{#each model.settings as |s|}} + + + + + {{/each}} +
{{i18n 'admin.email.delivery_method'}}{{delivery_method}}
{{s.name}}{{s.value}}{{i18n 'admin.email.delivery_method'}}{{delivery_method}}
{{s.name}}{{s.value}}
diff --git a/app/assets/javascripts/admin/templates/email-received.hbs b/app/assets/javascripts/admin/templates/email-received.hbs index 8a164e3ff8e..e711d5a0ba2 100644 --- a/app/assets/javascripts/admin/templates/email-received.hbs +++ b/app/assets/javascripts/admin/templates/email-received.hbs @@ -9,48 +9,49 @@ - - {{i18n 'admin.email.logs.filters.title'}} - {{text-field value=filter.from placeholderKey="admin.email.incoming_emails.filters.from_placeholder"}} - {{text-field value=filter.to placeholderKey="admin.email.incoming_emails.filters.to_placeholder"}} - {{text-field value=filter.subject placeholderKey="admin.email.incoming_emails.filters.subject_placeholder"}} - - - {{#each model as |email|}} - - {{format-date email.created_at}} - -
- {{#if email.user}} - {{#link-to 'adminUser' email.user}} - {{avatar email.user imageSize="tiny"}} - {{email.from_address}} - {{/link-to}} - {{else}} - — - {{/if}} -
- - - {{#each email.to_addresses as |to|}} -

{{unbound to}}

- {{/each}} - {{#each email.cc_addresses as |cc|}} -

{{unbound cc}}

- {{/each}} - - - {{#if email.post_url}} - {{email.subject}} - {{else}} - {{email.subject}} - {{/if}} - + + + {{i18n 'admin.email.logs.filters.title'}} + {{text-field value=filter.from placeholderKey="admin.email.incoming_emails.filters.from_placeholder"}} + {{text-field value=filter.to placeholderKey="admin.email.incoming_emails.filters.to_placeholder"}} + {{text-field value=filter.subject placeholderKey="admin.email.incoming_emails.filters.subject_placeholder"}} - {{else}} - {{i18n 'admin.email.incoming_emails.none'}} - {{/each}} + {{#each model as |email|}} + + {{format-date email.created_at}} + +
+ {{#if email.user}} + {{#link-to 'adminUser' email.user}} + {{avatar email.user imageSize="tiny"}} + {{email.from_address}} + {{/link-to}} + {{else}} + — + {{/if}} +
+ + + {{#each email.to_addresses as |to|}} +

{{unbound to}}

+ {{/each}} + {{#each email.cc_addresses as |cc|}} +

{{unbound cc}}

+ {{/each}} + + + {{#if email.post_url}} + {{email.subject}} + {{else}} + {{email.subject}} + {{/if}} + + + {{else}} + {{i18n 'admin.email.incoming_emails.none'}} + {{/each}} + {{/load-more}} diff --git a/app/assets/javascripts/admin/templates/email-rejected.hbs b/app/assets/javascripts/admin/templates/email-rejected.hbs index 43744a919b4..7139d85e2fb 100644 --- a/app/assets/javascripts/admin/templates/email-rejected.hbs +++ b/app/assets/javascripts/admin/templates/email-rejected.hbs @@ -10,50 +10,51 @@ - - {{i18n 'admin.email.logs.filters.title'}} - {{text-field value=filter.from placeholderKey="admin.email.incoming_emails.filters.from_placeholder"}} - {{text-field value=filter.to placeholderKey="admin.email.incoming_emails.filters.to_placeholder"}} - {{text-field value=filter.subject placeholderKey="admin.email.incoming_emails.filters.subject_placeholder"}} - {{text-field value=filter.error placeholderKey="admin.email.incoming_emails.filters.error_placeholder"}} - - - {{#each model as |email|}} - - {{format-date email.created_at}} - -
- {{#if email.user}} - {{#link-to 'adminUser' email.user}} - {{avatar email.user imageSize="tiny"}} - {{email.from_address}} - {{/link-to}} - {{else}} - {{#if email.from_address}} - {{email.from_address}} - {{else}} - — - {{/if}} - {{/if}} -
- - - {{#each email.to_addresses as |to|}} -

{{unbound to}}

- {{/each}} - {{#each email.cc_addresses as |cc|}} -

{{unbound cc}}

- {{/each}} - - {{email.subject}} - - {{email.error}} - + + + {{i18n 'admin.email.logs.filters.title'}} + {{text-field value=filter.from placeholderKey="admin.email.incoming_emails.filters.from_placeholder"}} + {{text-field value=filter.to placeholderKey="admin.email.incoming_emails.filters.to_placeholder"}} + {{text-field value=filter.subject placeholderKey="admin.email.incoming_emails.filters.subject_placeholder"}} + {{text-field value=filter.error placeholderKey="admin.email.incoming_emails.filters.error_placeholder"}} - {{else}} - {{i18n 'admin.email.incoming_emails.none'}} - {{/each}} + {{#each model as |email|}} + + {{format-date email.created_at}} + +
+ {{#if email.user}} + {{#link-to 'adminUser' email.user}} + {{avatar email.user imageSize="tiny"}} + {{email.from_address}} + {{/link-to}} + {{else}} + {{#if email.from_address}} + {{email.from_address}} + {{else}} + — + {{/if}} + {{/if}} +
+ + + {{#each email.to_addresses as |to|}} +

{{unbound to}}

+ {{/each}} + {{#each email.cc_addresses as |cc|}} +

{{unbound cc}}

+ {{/each}} + + {{email.subject}} + + {{email.error}} + + + {{else}} + {{i18n 'admin.email.incoming_emails.none'}} + {{/each}} + {{/load-more}} diff --git a/app/assets/javascripts/admin/templates/email-sent.hbs b/app/assets/javascripts/admin/templates/email-sent.hbs index fe3712b986e..5c2bf4c49ba 100644 --- a/app/assets/javascripts/admin/templates/email-sent.hbs +++ b/app/assets/javascripts/admin/templates/email-sent.hbs @@ -9,46 +9,46 @@ {{i18n 'admin.email.reply_key'}} - - - {{i18n 'admin.email.logs.filters.title'}} - {{text-field value=filter.user placeholderKey="admin.email.logs.filters.user_placeholder"}} - {{text-field value=filter.address placeholderKey="admin.email.logs.filters.address_placeholder"}} - {{text-field value=filter.type placeholderKey="admin.email.logs.filters.type_placeholder"}} - {{text-field value=filter.reply_key placeholderKey="admin.email.logs.filters.reply_key_placeholder"}} - - - {{#each model as |l|}} - - {{format-date l.created_at}} - - {{#if l.user}} - {{#link-to 'adminUser' l.user}}{{avatar l.user imageSize="tiny"}}{{/link-to}} - {{#link-to 'adminUser' l.user}}{{l.user.username}}{{/link-to}} - {{else}} - — - {{/if}} - - - {{#if l.bounced}}{{d-icon "redo" title="admin.email.bounced"}}{{/if}} - {{l.to_address}} - - {{l.email_type}} - - {{#if l.post_url}} - {{l.post_description}} - {{l.reply_key}} - {{else}} - {{l.reply_key}} - {{/if}} - + + + {{i18n 'admin.email.logs.filters.title'}} + {{text-field value=filter.user placeholderKey="admin.email.logs.filters.user_placeholder"}} + {{text-field value=filter.address placeholderKey="admin.email.logs.filters.address_placeholder"}} + {{text-field value=filter.type placeholderKey="admin.email.logs.filters.type_placeholder"}} + {{text-field value=filter.reply_key placeholderKey="admin.email.logs.filters.reply_key_placeholder"}} - {{else}} - {{#unless loading}} - {{i18n 'admin.email.logs.none'}} - {{/unless}} - {{/each}} + {{#each model as |l|}} + + {{format-date l.created_at}} + + {{#if l.user}} + {{#link-to 'adminUser' l.user}}{{avatar l.user imageSize="tiny"}}{{/link-to}} + {{#link-to 'adminUser' l.user}}{{l.user.username}}{{/link-to}} + {{else}} + — + {{/if}} + + + {{#if l.bounced}}{{d-icon "redo" title="admin.email.bounced"}}{{/if}} + {{l.to_address}} + + {{l.email_type}} + + {{#if l.post_url}} + {{l.post_description}} + {{l.reply_key}} + {{else}} + {{l.reply_key}} + {{/if}} + + + {{else}} + {{#unless loading}} + {{i18n 'admin.email.logs.none'}} + {{/unless}} + {{/each}} + {{/load-more}} diff --git a/app/assets/javascripts/admin/templates/email-skipped.hbs b/app/assets/javascripts/admin/templates/email-skipped.hbs index ee805343823..f2463f3daf0 100644 --- a/app/assets/javascripts/admin/templates/email-skipped.hbs +++ b/app/assets/javascripts/admin/templates/email-skipped.hbs @@ -9,42 +9,42 @@ {{i18n 'admin.email.skipped_reason'}} - - - {{i18n 'admin.email.logs.filters.title'}} - {{text-field value=filter.user placeholderKey="admin.email.logs.filters.user_placeholder"}} - {{text-field value=filter.address placeholderKey="admin.email.logs.filters.address_placeholder"}} - {{text-field value=filter.type placeholderKey="admin.email.logs.filters.type_placeholder"}} - - - - {{#each model as |l|}} - - {{format-date l.created_at}} - - {{#if l.user}} - {{#link-to 'adminUser' l.user}}{{avatar l.user imageSize="tiny"}}{{/link-to}} - {{#link-to 'adminUser' l.user}}{{l.user.username}}{{/link-to}} - {{else}} - — - {{/if}} - - {{l.to_address}} - {{l.email_type}} - - {{#if l.post_url}} - {{l.skipped_reason}} - {{else}} - {{l.skipped_reason}} - {{/if}} - + + + {{i18n 'admin.email.logs.filters.title'}} + {{text-field value=filter.user placeholderKey="admin.email.logs.filters.user_placeholder"}} + {{text-field value=filter.address placeholderKey="admin.email.logs.filters.address_placeholder"}} + {{text-field value=filter.type placeholderKey="admin.email.logs.filters.type_placeholder"}} + - {{else}} - {{#unless loading}} - {{i18n 'admin.email.logs.none'}} - {{/unless}} - {{/each}} + {{#each model as |l|}} + + {{format-date l.created_at}} + + {{#if l.user}} + {{#link-to 'adminUser' l.user}}{{avatar l.user imageSize="tiny"}}{{/link-to}} + {{#link-to 'adminUser' l.user}}{{l.user.username}}{{/link-to}} + {{else}} + — + {{/if}} + + {{l.to_address}} + {{l.email_type}} + + {{#if l.post_url}} + {{l.skipped_reason}} + {{else}} + {{l.skipped_reason}} + {{/if}} + + + {{else}} + {{#unless loading}} + {{i18n 'admin.email.logs.none'}} + {{/unless}} + {{/each}} + {{/load-more}} diff --git a/app/assets/javascripts/admin/templates/permalinks.hbs b/app/assets/javascripts/admin/templates/permalinks.hbs index 3894205148e..b86950bc2ac 100644 --- a/app/assets/javascripts/admin/templates/permalinks.hbs +++ b/app/assets/javascripts/admin/templates/permalinks.hbs @@ -21,34 +21,36 @@ {{i18n 'admin.permalink.external_url'}} - {{#each model as |pl|}} - - {{pl.url}} - - {{#if pl.topic_id}} - {{pl.topic_title}} - {{/if}} - - - {{#if pl.post_id}} - #{{pl.post_number}} {{pl.post_topic_title}} - {{/if}} - - - {{#if pl.category_id}} - {{pl.category_name}} - {{/if}} - - - {{#if pl.external_url}} - {{pl.external_url}} - {{/if}} - - - {{d-button action=(action "destroy") actionParam=pl icon="far-trash-alt" class="btn-danger"}} - - - {{/each}} + + {{#each model as |pl|}} + + {{pl.url}} + + {{#if pl.topic_id}} + {{pl.topic_title}} + {{/if}} + + + {{#if pl.post_id}} + #{{pl.post_number}} {{pl.post_topic_title}} + {{/if}} + + + {{#if pl.category_id}} + {{pl.category_name}} + {{/if}} + + + {{#if pl.external_url}} + {{pl.external_url}} + {{/if}} + + + {{d-button action=(action "destroy") actionParam=pl icon="far-trash-alt" class="btn-danger"}} + + + {{/each}} + {{else}} {{i18n 'search.no_results'}} diff --git a/app/assets/javascripts/admin/templates/user-badges.hbs b/app/assets/javascripts/admin/templates/user-badges.hbs index f4e7a63e2ab..f919867c4df 100644 --- a/app/assets/javascripts/admin/templates/user-badges.hbs +++ b/app/assets/javascripts/admin/templates/user-badges.hbs @@ -36,49 +36,50 @@ {{/if}} - - - - - - - - - {{#each groupedBadges as |userBadge|}} + - - - - - + + + + + - {{else}} - - - - {{/each}} + {{#each groupedBadges as |userBadge|}} + + + + + + + + {{else}} + + + + {{/each}} +
{{i18n 'admin.badges.badge'}}{{i18n 'admin.badges.granted_by'}}{{i18n 'admin.badges.reason'}}{{i18n 'admin.badges.granted_at'}}
{{user-badge badge=userBadge.badge count=userBadge.count}} - {{#link-to 'adminUser' userBadge.badge.granted_by}} - {{avatar userBadge.granted_by imageSize="tiny"}} - {{userBadge.granted_by.username}} - {{/link-to}} - - {{#if userBadge.postUrl}} - {{userBadge.topic_title}} - {{/if}} - {{age-with-tooltip userBadge.granted_at}} - {{#if userBadge.grouped}} - {{d-button - action=(action "expandGroup" userBadge) - label="admin.badges.expand"}} - {{else}} - {{d-button - class="btn-danger" - action=(action "revokeBadge" userBadge) - label="admin.badges.revoke"}} - {{/if}} - {{i18n 'admin.badges.badge'}}{{i18n 'admin.badges.granted_by'}}{{i18n 'admin.badges.reason'}}{{i18n 'admin.badges.granted_at'}}
-

{{i18n 'admin.badges.no_user_badges' name=user.username}}

-
{{user-badge badge=userBadge.badge count=userBadge.count}} + {{#link-to 'adminUser' userBadge.badge.granted_by}} + {{avatar userBadge.granted_by imageSize="tiny"}} + {{userBadge.granted_by.username}} + {{/link-to}} + + {{#if userBadge.postUrl}} + {{userBadge.topic_title}} + {{/if}} + {{age-with-tooltip userBadge.granted_at}} + {{#if userBadge.grouped}} + {{d-button + action=(action "expandGroup" userBadge) + label="admin.badges.expand"}} + {{else}} + {{d-button + class="btn-danger" + action=(action "revokeBadge" userBadge) + label="admin.badges.revoke"}} + {{/if}} +
+

{{i18n 'admin.badges.no_user_badges' name=user.username}}

+
{{/conditional-loading-spinner}} diff --git a/app/assets/javascripts/discourse/templates/about.hbs b/app/assets/javascripts/discourse/templates/about.hbs index b09252ff5e8..6e75a04a6df 100644 --- a/app/assets/javascripts/discourse/templates/about.hbs +++ b/app/assets/javascripts/discourse/templates/about.hbs @@ -68,42 +68,44 @@

{{d-icon "far-chart-bar"}} {{i18n 'about.stats'}}

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 {{i18n 'about.stat.last_7_days'}}{{i18n 'about.stat.last_30_days'}}{{i18n 'about.stat.all_time'}}
{{i18n 'about.topic_count'}}{{number model.stats.topics_7_days}}{{number model.stats.topics_30_days}}{{number model.stats.topic_count}}
{{i18n 'about.post_count'}}{{number model.stats.posts_7_days}}{{number model.stats.posts_30_days}}{{number model.stats.post_count}}
{{i18n 'about.user_count'}}{{number model.stats.users_7_days}}{{number model.stats.users_30_days}}{{number model.stats.user_count}}
{{i18n 'about.active_user_count'}}{{number model.stats.active_users_7_days}}{{number model.stats.active_users_30_days}}
{{i18n 'about.like_count'}}{{number model.stats.likes_7_days}}{{number model.stats.likes_30_days}}{{number model.stats.like_count}}
 {{i18n 'about.stat.last_7_days'}}{{i18n 'about.stat.last_30_days'}}{{i18n 'about.stat.all_time'}}
{{i18n 'about.topic_count'}}{{number model.stats.topics_7_days}}{{number model.stats.topics_30_days}}{{number model.stats.topic_count}}
{{i18n 'about.post_count'}}{{number model.stats.posts_7_days}}{{number model.stats.posts_30_days}}{{number model.stats.post_count}}
{{i18n 'about.user_count'}}{{number model.stats.users_7_days}}{{number model.stats.users_30_days}}{{number model.stats.user_count}}
{{i18n 'about.active_user_count'}}{{number model.stats.active_users_7_days}}{{number model.stats.active_users_30_days}}
{{i18n 'about.like_count'}}{{number model.stats.likes_7_days}}{{number model.stats.likes_30_days}}{{number model.stats.like_count}}
diff --git a/app/assets/javascripts/discourse/templates/components/categories-only.hbs b/app/assets/javascripts/discourse/templates/components/categories-only.hbs index ee0840bbe3b..4f153b4e7fa 100644 --- a/app/assets/javascripts/discourse/templates/components/categories-only.hbs +++ b/app/assets/javascripts/discourse/templates/components/categories-only.hbs @@ -21,36 +21,38 @@ {{/if}} {{#if c.isGrandParent}} - {{#each c.subcategories as |subcategory|}} - - + {{#each c.subcategories as |subcategory|}} + + - - {{/each}} + {{#if subcategory.subcategories}} +
+ {{#each subcategory.subcategories as |subsubcategory|}} + {{#unless subsubcategory.isMuted}} + + {{category-title-before category=subsubcategory}} + {{category-link subsubcategory hideParent="true"}} + + {{/unless}} + {{/each}} +
+ {{else}} + {{#if subcategory.description_excerpt}} +
+ {{{dir-span subcategory.description_excerpt}}} +
+ {{/if}} + {{/if}} + + + {{/each}} +
- {{category-title-link tagName="h4" category=subcategory}} - {{#if subcategory.description_excerpt}} -
- {{{dir-span subcategory.description_excerpt}}} -
- {{/if}} - {{#if subcategory.subcategories}} -
- {{#each subcategory.subcategories as |subsubcategory|}} - {{#unless subsubcategory.isMuted}} - - {{category-title-before category=subsubcategory}} - {{category-link subsubcategory hideParent="true"}} - - {{/unless}} - {{/each}} -
- {{else}} +
+ {{category-title-link tagName="h4" category=subcategory}} {{#if subcategory.description_excerpt}}
{{{dir-span subcategory.description_excerpt}}}
{{/if}} - {{/if}} -
{{else if c.subcategories}}
diff --git a/app/assets/javascripts/discourse/templates/mobile/components/categories-only.hbs b/app/assets/javascripts/discourse/templates/mobile/components/categories-only.hbs index bbe0fdf01ac..41b86dda0bf 100644 --- a/app/assets/javascripts/discourse/templates/mobile/components/categories-only.hbs +++ b/app/assets/javascripts/discourse/templates/mobile/components/categories-only.hbs @@ -3,60 +3,61 @@ {{#each categories as |c|}}
- - - - - {{#if c.description_excerpt}} - - + + + - {{/if}} - {{#if showTopics}} - {{#each c.topics as |t|}} - {{mobile-category-topic topic=t}} - {{/each}} - {{/if}} + {{#if c.description_excerpt}} + + + + {{/if}} - {{#if c.isGrandParent}} - {{#each c.subcategories as |subcategory|}} - + {{#if showTopics}} + {{#each c.topics as |t|}} + {{mobile-category-topic topic=t}} + {{/each}} + {{/if}} + + {{#if c.isGrandParent}} + {{#each c.subcategories as |subcategory|}} + + + + {{/each}} + {{else if c.subcategories}} + - {{/each}} - {{else if c.subcategories}} - - - - {{/if}} - + {{/if}} +
- {{category-title-link category=c}} -
- {{{c.description_excerpt}}} -
+ {{category-title-link category=c}} +
+ {{{c.description_excerpt}}} +
+ {{category-title-link tagName="h4" category=subcategory}} + +
+ {{#if subcategory.subcategories}} +
+ {{#each subcategory.subcategories as |subsubcategory|}} + {{#unless subsubcategory.isMuted}} + {{category-link subsubcategory}} + {{/unless}} + {{/each}} +
+ {{/if}} +
+
- {{category-title-link tagName="h4" category=subcategory}} - -
- {{#if subcategory.subcategories}} -
- {{#each subcategory.subcategories as |subsubcategory|}} - {{#unless subsubcategory.isMuted}} - {{category-link subsubcategory}} - {{/unless}} - {{/each}} -
- {{/if}} +
+ {{#each c.subcategories as |subcategory|}} + {{#unless subcategory.isMuted}} + {{category-link subcategory}} + {{/unless}} + {{/each}}
-
- {{#each c.subcategories as |subcategory|}} - {{#unless subcategory.isMuted}} - {{category-link subcategory}} - {{/unless}} - {{/each}} -
-