mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 13:03:39 +08:00
DEV: Add plugin outlet to the group info template (#28624)
* DEV: Add plugin outlet to the group info template
This commit is contained in:
parent
bdd00a84b0
commit
22c7fde850
|
@ -1,11 +1,19 @@
|
|||
import { hash } from "@ember/helper";
|
||||
import { or } from "truth-helpers";
|
||||
import PluginOutlet from "discourse/components/plugin-outlet";
|
||||
|
||||
const GroupsInfo = <template>
|
||||
<PluginOutlet
|
||||
@name="group-info-details"
|
||||
@outletArgs={{hash group=@group}}
|
||||
@defaultGlimmer={{true}}
|
||||
>
|
||||
<span class="group-info-details">
|
||||
<span class="groups-info-name">
|
||||
{{or @group.full_name @group.displayName}}
|
||||
</span>
|
||||
</span>
|
||||
</PluginOutlet>
|
||||
</template>;
|
||||
|
||||
export default GroupsInfo;
|
||||
|
|
Loading…
Reference in New Issue
Block a user