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

View File

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