Skip to content

A platform for community discussion. Free, open, simple.

DEV: Add wrapper outlet around the topic cell top and bottom lines (#30848)

Sérgio Saquetima99bb0caff3e
diff --git a/app/assets/javascripts/discourse/app/components/topic-list/item/topic-cell.gjs b/app/assets/javascripts/discourse/app/components/topic-list/item/topic-cell.gjs
index 4772f133503..6d32ec4172e 100644
--- a/app/assets/javascripts/discourse/app/components/topic-list/item/topic-cell.gjs
+++ b/app/assets/javascripts/discourse/app/components/topic-list/item/topic-cell.gjs
@@ -62,61 +62,72 @@ export default class TopicCell extends Component {
@outletArgs={{hash topic=@topic}}
/>
{{~! no whitespace ~}}
- <TopicStatus @topic={{@topic}} />
- {{~! no whitespace ~}}
- <TopicLink
- {{on "focus" this.onTitleFocus}}
- {{on "blur" this.onTitleBlur}}
- @topic={{@topic}}
- class="raw-link raw-topic-link"
- />
- {{~#if @topic.featured_link~}}
- &nbsp;
- {{~topicFeaturedLink @topic}}
- {{~/if~}}
<PluginOutlet
- @name="topic-list-after-title"
- @outletArgs={{hash topic=@topic}}
- />
- {{~! no whitespace ~}}
- <UnreadIndicator @topic={{@topic}} />
- {{~#if @showTopicPostBadges~}}
- <TopicPostBadges
- @unreadPosts={{@topic.unread_posts}}
- @unseen={{@topic.unseen}}
- @newDotText={{this.newDotText}}
- @url={{@topic.lastUnreadUrl}}
+ @name="topic-list-topic-cell-link-top-line"
+ @outletArgs={{hash topic=@topic tagsForUser=@tagsForUser}}
+ >
+ {{~! no whitespace ~}}
+ <TopicStatus @topic={{@topic}} />
+ {{~! no whitespace ~}}
+ <TopicLink
+ {{on "focus" this.onTitleFocus}}
+ {{on "blur" this.onTitleBlur}}
+ @topic={{@topic}}
+ class="raw-link raw-topic-link"
+ />
+ {{~#if @topic.featured_link~}}
+ &nbsp;
+ {{~topicFeaturedLink @topic}}
+ {{~/if~}}
+ <PluginOutlet
+ @name="topic-list-after-title"
+ @outletArgs={{hash topic=@topic}}
/>
- {{~/if~}}
+ {{~! no whitespace ~}}
+ <UnreadIndicator @topic={{@topic}} />
+ {{~#if @showTopicPostBadges~}}
+ <TopicPostBadges
+ @unreadPosts={{@topic.unread_posts}}
+ @unseen={{@topic.unseen}}
+ @newDotText={{this.newDotText}}
+ @url={{@topic.lastUnreadUrl}}
+ />
+ {{~/if~}}
+ </PluginOutlet>
</span>
<div class="link-bottom-line">
- {{#unless @hideCategory}}
- {{#unless @topic.isPinnedUncategorized}}
- <PluginOutlet
- @name="topic-list-before-category"
- @outletArgs={{hash topic=@topic}}
- />
- {{categoryLink @topic.category}}
- <PluginOutlet
- @name="topic-list-after-category"
- @outletArgs={{hash topic=@topic}}
- />
+ <PluginOutlet
+ @name="topic-list-topic-cell-link-bottom-line"
+ @outletArgs={{hash topic=@topic tagsForUser=@tagsForUser}}
+ >
+ {{#unless @hideCategory}}
+ {{#unless @topic.isPinnedUncategorized}}
+ <PluginOutlet
+ @name="topic-list-before-category"
+ @outletArgs={{hash topic=@topic}}
+ />
+ {{categoryLink @topic.category}}
+ <PluginOutlet
+ @name="topic-list-after-category"
+ @outletArgs={{hash topic=@topic}}
+ />
+ {{/unless}}
{{/unless}}
- {{/unless}}
- {{discourseTags @topic mode="list" tagsForUser=@tagsForUser}}
+ {{discourseTags @topic mode="list" tagsForUser=@tagsForUser}}
- {{#if this.participantGroups}}
- <ParticipantGroups @groups={{this.participantGroups}} />
- {{/if}}
+ {{#if this.participantGroups}}
+ <ParticipantGroups @groups={{this.participantGroups}} />
+ {{/if}}
- <ActionList
- @topic={{@topic}}
- @postNumbers={{@topic.liked_post_numbers}}
- @icon="heart"
- class="likes"
- />
+ <ActionList
+ @topic={{@topic}}
+ @postNumbers={{@topic.liked_post_numbers}}
+ @icon="heart"
+ class="likes"
+ />
+ </PluginOutlet>
</div>
{{#if @expandPinned}}