mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Add wrapper outlet around the topic cell top and bottom lines (#30848)
This commit is contained in:
parent
e2c3dff669
commit
a99bb0caff
@ -62,61 +62,72 @@ export default class TopicCell extends Component {
|
|||||||
@outletArgs={{hash topic=@topic}}
|
@outletArgs={{hash topic=@topic}}
|
||||||
/>
|
/>
|
||||||
{{~! no whitespace ~}}
|
{{~! 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~}}
|
|
||||||
|
|
||||||
{{~topicFeaturedLink @topic}}
|
|
||||||
{{~/if~}}
|
|
||||||
<PluginOutlet
|
<PluginOutlet
|
||||||
@name="topic-list-after-title"
|
@name="topic-list-topic-cell-link-top-line"
|
||||||
@outletArgs={{hash topic=@topic}}
|
@outletArgs={{hash topic=@topic tagsForUser=@tagsForUser}}
|
||||||
/>
|
>
|
||||||
{{~! no whitespace ~}}
|
{{~! no whitespace ~}}
|
||||||
<UnreadIndicator @topic={{@topic}} />
|
<TopicStatus @topic={{@topic}} />
|
||||||
{{~#if @showTopicPostBadges~}}
|
{{~! no whitespace ~}}
|
||||||
<TopicPostBadges
|
<TopicLink
|
||||||
@unreadPosts={{@topic.unread_posts}}
|
{{on "focus" this.onTitleFocus}}
|
||||||
@unseen={{@topic.unseen}}
|
{{on "blur" this.onTitleBlur}}
|
||||||
@newDotText={{this.newDotText}}
|
@topic={{@topic}}
|
||||||
@url={{@topic.lastUnreadUrl}}
|
class="raw-link raw-topic-link"
|
||||||
/>
|
/>
|
||||||
{{~/if~}}
|
{{~#if @topic.featured_link~}}
|
||||||
|
|
||||||
|
{{~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}}
|
||||||
|
/>
|
||||||
|
{{~/if~}}
|
||||||
|
</PluginOutlet>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<div class="link-bottom-line">
|
<div class="link-bottom-line">
|
||||||
{{#unless @hideCategory}}
|
<PluginOutlet
|
||||||
{{#unless @topic.isPinnedUncategorized}}
|
@name="topic-list-topic-cell-link-bottom-line"
|
||||||
<PluginOutlet
|
@outletArgs={{hash topic=@topic tagsForUser=@tagsForUser}}
|
||||||
@name="topic-list-before-category"
|
>
|
||||||
@outletArgs={{hash topic=@topic}}
|
{{#unless @hideCategory}}
|
||||||
/>
|
{{#unless @topic.isPinnedUncategorized}}
|
||||||
{{categoryLink @topic.category}}
|
<PluginOutlet
|
||||||
<PluginOutlet
|
@name="topic-list-before-category"
|
||||||
@name="topic-list-after-category"
|
@outletArgs={{hash topic=@topic}}
|
||||||
@outletArgs={{hash topic=@topic}}
|
/>
|
||||||
/>
|
{{categoryLink @topic.category}}
|
||||||
|
<PluginOutlet
|
||||||
|
@name="topic-list-after-category"
|
||||||
|
@outletArgs={{hash topic=@topic}}
|
||||||
|
/>
|
||||||
|
{{/unless}}
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
{{/unless}}
|
|
||||||
|
|
||||||
{{discourseTags @topic mode="list" tagsForUser=@tagsForUser}}
|
{{discourseTags @topic mode="list" tagsForUser=@tagsForUser}}
|
||||||
|
|
||||||
{{#if this.participantGroups}}
|
{{#if this.participantGroups}}
|
||||||
<ParticipantGroups @groups={{this.participantGroups}} />
|
<ParticipantGroups @groups={{this.participantGroups}} />
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<ActionList
|
<ActionList
|
||||||
@topic={{@topic}}
|
@topic={{@topic}}
|
||||||
@postNumbers={{@topic.liked_post_numbers}}
|
@postNumbers={{@topic.liked_post_numbers}}
|
||||||
@icon="heart"
|
@icon="heart"
|
||||||
class="likes"
|
class="likes"
|
||||||
/>
|
/>
|
||||||
|
</PluginOutlet>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{#if @expandPinned}}
|
{{#if @expandPinned}}
|
||||||
|
Loading…
Reference in New Issue
Block a user