DEV: pass user to user-summary outlets

This commit is contained in:
awesomerobot 2022-03-31 17:46:26 -04:00 committed by Alan Guo Xiang Tan
parent 819038537c
commit e54440a035
1 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@
{{user-stat value=model.post_count label="user.summary.post_count"}} {{user-stat value=model.post_count label="user.summary.post_count"}}
{{/link-to}} {{/link-to}}
</li> </li>
{{plugin-outlet name="user-summary-stat" connectorTagName="li" args=(hash model=model)}} {{plugin-outlet name="user-summary-stat" connectorTagName="li" args=(hash model=model user=user)}}
</ul> </ul>
</div> </div>
{{/if}} {{/if}}
@ -157,7 +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)}} {{plugin-outlet name="after-user-summary-badges" args=(hash model=model user=user)}}
</div> </div>
{{else}} {{else}}
<p>{{i18n "user.summary.no_badges"}}</p> <p>{{i18n "user.summary.no_badges"}}</p>