mirror of
https://github.com/discourse/discourse.git
synced 2024-12-11 20:13:43 +08:00
26b5c0472f
The `tagName` argument is now deprecated. This commit uses a codemod (https://github.com/discourse/discourse-ember-codemods/tree/main/transforms/extract-plugin-outlet-tagname) to automatically remove the `@tagName` from all PluginOutlet invocations, and create a matching wrapper element so that the HTML structure is unchanged. We may want to remove some/all of these wrappers entirely in future, but that would be a riskier change which we should tackle on a case-by-case basis.
60 lines
1.6 KiB
Handlebars
60 lines
1.6 KiB
Handlebars
<span>
|
|
<PluginOutlet @name="admin-dashboard-top" @connectorTagName="div" />
|
|
</span>
|
|
|
|
{{#if this.showVersionChecks}}
|
|
<div class="section-top">
|
|
<div class="version-checks">
|
|
<VersionChecks @versionCheck={{this.versionCheck}} @tagName="" />
|
|
</div>
|
|
</div>
|
|
{{/if}}
|
|
|
|
<DashboardProblems
|
|
@loadingProblems={{this.loadingProblems}}
|
|
@foundProblems={{this.foundProblems}}
|
|
@lowPriorityProblems={{this.lowPriorityProblems}}
|
|
@highPriorityProblems={{this.highPriorityProblems}}
|
|
@problemsTimestamp={{this.problemsTimestamp}}
|
|
@refreshProblems={{action "refreshProblems"}}
|
|
/>
|
|
|
|
<ul class="navigation">
|
|
<li class="navigation-item general">
|
|
<LinkTo @route="admin.dashboard.general" class="navigation-link">
|
|
{{i18n "admin.dashboard.general_tab"}}
|
|
</LinkTo>
|
|
</li>
|
|
|
|
{{#if this.isModerationTabVisible}}
|
|
<li class="navigation-item moderation">
|
|
<LinkTo @route="admin.dashboardModeration" class="navigation-link">
|
|
{{i18n "admin.dashboard.moderation_tab"}}
|
|
</LinkTo>
|
|
</li>
|
|
{{/if}}
|
|
|
|
{{#if this.isSecurityTabVisible}}
|
|
<li class="navigation-item security">
|
|
<LinkTo @route="admin.dashboardSecurity" class="navigation-link">
|
|
{{i18n "admin.dashboard.security_tab"}}
|
|
</LinkTo>
|
|
</li>
|
|
{{/if}}
|
|
|
|
{{#if this.isReportsTabVisible}}
|
|
<li class="navigation-item reports">
|
|
<LinkTo @route="admin.dashboardReports" class="navigation-link">
|
|
{{i18n "admin.dashboard.reports_tab"}}
|
|
</LinkTo>
|
|
</li>
|
|
{{/if}}
|
|
</ul>
|
|
|
|
{{outlet}}
|
|
|
|
<DashboardNewFeatures @tagName="div" />
|
|
|
|
<span>
|
|
<PluginOutlet @name="admin-dashboard-bottom" @connectorTagName="div" />
|
|
</span> |