DEV: Add `PluginOutlet`s from the old /about page to the new one (#28695)

The old /about page has 3 plugin outlets: one after the description, one after the admins list, and one after the mods list. These outlets translate cleanly to the new /about page, so we should add them to it to make plugins/themes compatible with the new page.
This commit is contained in:
Osama Sayegh 2024-09-03 14:02:07 +03:00 committed by GitHub
parent db168a09d1
commit dbe7613352
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 1 deletions

View File

@ -205,7 +205,7 @@ export default class AboutPage extends Component {
<PluginOutlet
@name="about-after-description"
@connectorTagName="section"
@outletArgs={{hash model=this.model}}
@outletArgs={{hash model=@model}}
/>
</section>
<div class="about__main-content">
@ -230,6 +230,11 @@ export default class AboutPage extends Component {
<AboutPageUsers @users={{@model.admins}} @truncateAt={{6}} />
</section>
{{/if}}
<PluginOutlet
@name="about-after-admins"
@connectorTagName="section"
@outletArgs={{hash model=@model}}
/>
{{#if @model.moderators.length}}
<section class="about__moderators">
@ -237,7 +242,13 @@ export default class AboutPage extends Component {
<AboutPageUsers @users={{@model.moderators}} @truncateAt={{6}} />
</section>
{{/if}}
<PluginOutlet
@name="about-after-moderators"
@connectorTagName="section"
@outletArgs={{hash model=@model}}
/>
</div>
<div class="about__right-side">
<h3>{{i18n "about.contact"}}</h3>
{{#if this.contactInfo}}