DEV: Add plugin wrappers required to fix template overrides (#29825)

* DEV: Add plugin wrappers required to fix tempalte overrides

* updated search-result-entry file

* activity file unintended changes fixed
This commit is contained in:
Juan David Martínez Cubillos 2024-12-02 13:07:27 -05:00 committed by GitHub
parent cf2b4d9934
commit 31dadc8373
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 117 additions and 100 deletions

View File

@ -1,11 +1,18 @@
<div class="author">
<PluginOutlet
@name="search-results-topic-avatar-wrapper"
@outletArgs={{hash post=this.post}}
>
<div class="author">
<a href={{this.post.userPath}} data-user-card={{this.post.username}}>
{{avatar this.post imageSize="large"}}
</a>
</div>
</div>
</PluginOutlet>
<div class="fps-topic" data-topic-id={{this.post.topic.id}}>
<div class="topic">
{{#if this.bulkSelectEnabled}}
<TrackSelected
@selectedList={{this.selected}}
@ -55,6 +62,10 @@
</div>
</div>
<PluginOutlet
@name="search-result-entry-blurb-wrapper"
@outletArgs={{hash post=this.post logClick=this.logClick}}
>
<div class="blurb container">
<span class="date">
{{format-date this.post.created_at format="tiny"}}
@ -73,7 +84,12 @@
{{/if}}
{{/if}}
</div>
</PluginOutlet>
<PluginOutlet
@name="search-result-entry-stats-wrapper"
@outletArgs={{hash post=this.post}}
>
{{#if this.showLikeCount}}
{{#if this.post.like_count}}
<span class="like-count">
@ -82,6 +98,7 @@
</span>
{{/if}}
{{/if}}
</PluginOutlet>
</div>
<PluginOutlet @name="after-search-result-entry" />

View File

@ -1,6 +1,6 @@
{{body-class "user-activity-page"}}
<div class="user-navigation user-navigation-secondary">
<PluginOutlet @name="user-activity-navigation-wrapper">
<div class="user-navigation user-navigation-secondary">
<HorizontalOverflowNav @ariaLabel="User secondary - activity">
<DNavigationItem
@route="userActivity.index"
@ -88,8 +88,8 @@
@outletArgs={{hash model=this.model}}
/>
</HorizontalOverflowNav>
</div>
</div>
</PluginOutlet>
<section class="user-content" id="user-content">
{{outlet}}
</section>