mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 09:57:49 +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>
|
const TopicMap = <template>
|
||||||
{{#unless @model.postStream.loadingFilter}}
|
{{#unless @model.postStream.loadingFilter}}
|
||||||
<section class="topic-map__contents">
|
<PluginOutlet
|
||||||
<TopicMapSummary
|
@name="topic-map"
|
||||||
@topic={{@model}}
|
@outletArgs={{hash topic=@model postStream=@postStream}}
|
||||||
@topicDetails={{@topicDetails}}
|
>
|
||||||
@postStream={{@postStream}}
|
<section class="topic-map__contents">
|
||||||
/>
|
<TopicMapSummary
|
||||||
</section>
|
@topic={{@model}}
|
||||||
|
|
||||||
<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}}
|
@topicDetails={{@topicDetails}}
|
||||||
@showInvite={{@showInvite}}
|
@postStream={{@postStream}}
|
||||||
@removeAllowedGroup={{@removeAllowedGroup}}
|
|
||||||
@removeAllowedUser={{@removeAllowedUser}}
|
|
||||||
/>
|
/>
|
||||||
</section>
|
</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}}
|
{{/unless}}
|
||||||
</template>;
|
</template>;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user