mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 01:56:58 +08:00
DEV: Add topic-map
plugin outlet wrapper (#31168)
This commit is contained in:
@ -5,32 +5,37 @@ import TopicMapSummary from "discourse/components/topic-map/topic-map-summary";
|
||||
|
||||
const TopicMap = <template>
|
||||
{{#unless @model.postStream.loadingFilter}}
|
||||
<section class="topic-map__contents">
|
||||
<TopicMapSummary
|
||||
@topic={{@model}}
|
||||
@topicDetails={{@topicDetails}}
|
||||
@postStream={{@postStream}}
|
||||
/>
|
||||
</section>
|
||||
|
||||
<section class="topic-map__additional-contents toggle-summary">
|
||||
<PluginOutlet
|
||||
@name="topic-map-expanded-after"
|
||||
@defaultGlimmer={{true}}
|
||||
@outletArgs={{hash topic=@model postStream=@postStream}}
|
||||
/>
|
||||
</section>
|
||||
|
||||
{{#if @showPMMap}}
|
||||
<section class="topic-map__private-message-map">
|
||||
<PrivateMessageMap
|
||||
<PluginOutlet
|
||||
@name="topic-map"
|
||||
@outletArgs={{hash topic=@model postStream=@postStream}}
|
||||
>
|
||||
<section class="topic-map__contents">
|
||||
<TopicMapSummary
|
||||
@topic={{@model}}
|
||||
@topicDetails={{@topicDetails}}
|
||||
@showInvite={{@showInvite}}
|
||||
@removeAllowedGroup={{@removeAllowedGroup}}
|
||||
@removeAllowedUser={{@removeAllowedUser}}
|
||||
@postStream={{@postStream}}
|
||||
/>
|
||||
</section>
|
||||
{{/if}}
|
||||
|
||||
<section class="topic-map__additional-contents toggle-summary">
|
||||
<PluginOutlet
|
||||
@name="topic-map-expanded-after"
|
||||
@defaultGlimmer={{true}}
|
||||
@outletArgs={{hash topic=@model postStream=@postStream}}
|
||||
/>
|
||||
</section>
|
||||
|
||||
{{#if @showPMMap}}
|
||||
<section class="topic-map__private-message-map">
|
||||
<PrivateMessageMap
|
||||
@topicDetails={{@topicDetails}}
|
||||
@showInvite={{@showInvite}}
|
||||
@removeAllowedGroup={{@removeAllowedGroup}}
|
||||
@removeAllowedUser={{@removeAllowedUser}}
|
||||
/>
|
||||
</section>
|
||||
{{/if}}
|
||||
</PluginOutlet>
|
||||
{{/unless}}
|
||||
</template>;
|
||||
|
||||
|
Reference in New Issue
Block a user