DEV: Add plugin wrapper to avoid template override in plugins (#30004)

* DEV: Add plugin wrapper to avoid template override in plugins

* added plugin wrapper

* linter issues

* added suggested change

Co-authored-by: Jarek Radosz <jradosz@gmail.com>

* added suggested changes

---------

Co-authored-by: Jarek Radosz <jradosz@gmail.com>
This commit is contained in:
Juan David Martínez Cubillos 2024-12-05 09:05:16 -05:00 committed by GitHub
parent 5ad09f7564
commit 555ca4da55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 19 additions and 9 deletions

View File

@ -1,11 +1,21 @@
<div class="user-profile-avatar">
{{bound-avatar @user "huge"}}
<UserAvatarFlair @user={{@user}} />
<div>
<PluginOutlet
@name="user-profile-avatar-wrapper"
@outletArgs={{hash user=@user}}
>
<div class="user-profile-avatar">
<PluginOutlet
@name="user-profile-avatar-flair"
@connectorTagName="div"
@outletArgs={{hash model=@user}}
/>
@name="user-profile-avatar-img-wrapper"
@outletArgs={{hash user=@user}}
>
{{bound-avatar @user "huge"}}
</PluginOutlet>
<UserAvatarFlair @user={{@user}} />
<div>
<PluginOutlet
@name="user-profile-avatar-flair"
@outletArgs={{hash model=@user}}
/>
</div>
</div>
</div>
</PluginOutlet>