DEV: add plugin outlets to accommodate customizations (#30222)

* DEV: add plugin outlets to accommodate customizations

* add the same outlet in glimmer file
This commit is contained in:
Arpit Jalan 2024-12-12 21:27:45 +05:30 committed by GitHub
parent b74007db0a
commit 357189d9e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 13 additions and 2 deletions

View File

@ -21,7 +21,7 @@
{{topic-link this.topic}} {{topic-link this.topic}}
{{~#if this.topic.featured_link}} {{~#if this.topic.featured_link}}
 {{topic-featured-link this.topic}}  {{topic-featured-link this.topic}}
{{/if}}{{! intentionally inline {{/if}}{{! intentionally inline
to avoid whitespace}}<TopicPostBadges to avoid whitespace}}<TopicPostBadges
@unreadPosts={{this.topic.unread_posts}} @unreadPosts={{this.topic.unread_posts}}
@unseen={{this.topic.unseen}} @unseen={{this.topic.unseen}}
@ -33,6 +33,11 @@
this.topic this.topic
mode="list" mode="list"
}}{{! intentionally inline to avoid whitespace}} }}{{! intentionally inline to avoid whitespace}}
<PluginOutlet
@name="below-latest-topic-list-item-bottom-row"
@connectorTagName="span"
@outletArgs={{hash topic=this.topic}}
/>
</div> </div>
</div> </div>
<div class="topic-stats"> <div class="topic-stats">

View File

@ -65,6 +65,11 @@ export default class LatestTopicListItem extends Component {
<div class="bottom-row"> <div class="bottom-row">
{{categoryLink @topic.category~}} {{categoryLink @topic.category~}}
{{~discourseTags @topic mode="list"}} {{~discourseTags @topic mode="list"}}
<PluginOutlet
@name="below-latest-topic-list-item-bottom-row"
@connectorTagName="span"
@outletArgs={{hash topic=@topic}}
/>
</div> </div>
</div> </div>

View File

@ -40,7 +40,7 @@
</div> </div>
{{~raw-plugin-outlet name="topic-list-after-main-link"}} {{~raw-plugin-outlet name="topic-list-after-main-link"}}
{{~plugin-outlet name="topic-list-after-main-link" outletArgs=(raw-hash topic=topic)}} {{~plugin-outlet name="topic-list-after-main-link" outletArgs=(raw-hash topic=topic)}}
<div class='pull-right'> <div class='pull-right'>
{{raw "list/post-count-or-badges" topic=topic postBadgesEnabled=showTopicPostBadges}} {{raw "list/post-count-or-badges" topic=topic postBadgesEnabled=showTopicPostBadges}}
</div> </div>
<div class="topic-item-stats clearfix"> <div class="topic-item-stats clearfix">
@ -57,6 +57,7 @@
href="{{topic.lastPostUrl}}">{{format-date topic.bumpedAt format="tiny" noTitle="true"}}</a> href="{{topic.lastPostUrl}}">{{format-date topic.bumpedAt format="tiny" noTitle="true"}}</a>
</span> </span>
</div> </div>
{{~plugin-outlet name="topic-list-after-topic-item-stats" outletArgs=(raw-hash topic=topic)}}
</div> </div>
{{~raw-plugin-outlet name="topic-list-after-columns"}} {{~raw-plugin-outlet name="topic-list-after-columns"}}
</td> </td>