DEV: add plugin outlets for user badges (#16334)

This commit is contained in:
Kris 2022-03-30 19:59:45 -04:00 committed by GitHub
parent 4d809e984d
commit 8999de6e5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -16,5 +16,6 @@
filterUser="true" filterUser="true"
}} }}
{{/each}} {{/each}}
{{plugin-outlet name="after-user-profile-badges"}}
</div> </div>
{{/d-section}} {{/d-section}}

View File

@ -157,6 +157,7 @@
{{#each model.badges as |badge|}} {{#each model.badges as |badge|}}
{{badge-card badge=badge count=badge.count username=user.username_lower}} {{badge-card badge=badge count=badge.count username=user.username_lower}}
{{/each}} {{/each}}
{{plugin-outlet name="after-user-summary-badges" args=(hash model=model)}}
</div> </div>
{{else}} {{else}}
<p>{{i18n "user.summary.no_badges"}}</p> <p>{{i18n "user.summary.no_badges"}}</p>