2024-08-30 12:53:36 +08:00
|
|
|
<div class="admin-plugins-list-container">
|
2024-05-20 12:25:54 +08:00
|
|
|
|
2024-08-30 12:53:36 +08:00
|
|
|
<AdminPageHeader
|
|
|
|
@titleLabel="admin.plugins.installed"
|
|
|
|
@descriptionLabel="admin.plugins.description"
|
|
|
|
@learnMoreUrl="https://www.discourse.org/plugins"
|
|
|
|
>
|
|
|
|
<:breadcrumbs>
|
|
|
|
<DBreadcrumbsItem
|
|
|
|
@path="/admin/plugins"
|
|
|
|
@label={{i18n "admin.plugins.title"}}
|
|
|
|
/>
|
|
|
|
</:breadcrumbs>
|
|
|
|
<:tabs>
|
|
|
|
<NavItem @route="adminPlugins.index" @label="admin.plugins.title" />
|
|
|
|
{{#each this.adminRoutes as |route|}}
|
|
|
|
{{#if route.use_new_show_route}}
|
|
|
|
<NavItem
|
|
|
|
@route={{route.full_location}}
|
|
|
|
@label={{route.label}}
|
|
|
|
@routeParam={{route.location}}
|
|
|
|
@class="admin-plugin-tab-nav-item"
|
|
|
|
data-plugin-nav-tab-id={{route.plugin_id}}
|
|
|
|
/>
|
|
|
|
{{else}}
|
|
|
|
<NavItem
|
|
|
|
@route={{route.full_location}}
|
|
|
|
@label={{route.label}}
|
|
|
|
@class="admin-plugin-tab-nav-item"
|
|
|
|
data-plugin-nav-tab-id={{route.plugin_id}}
|
|
|
|
/>
|
|
|
|
{{/if}}
|
|
|
|
{{/each}}
|
|
|
|
</:tabs>
|
|
|
|
</AdminPageHeader>
|
|
|
|
|
|
|
|
<div class="alert alert-info -top-margin admin-plugins-howto">
|
|
|
|
{{dIcon "info-circle"}}
|
|
|
|
<a href="https://meta.discourse.org/t/install-a-plugin/19157">
|
|
|
|
{{i18n "admin.plugins.howto"}}
|
|
|
|
</a>
|
|
|
|
</div>
|
2024-05-20 12:25:54 +08:00
|
|
|
|
2024-03-21 11:42:06 +08:00
|
|
|
{{#if this.model.length}}
|
|
|
|
<AdminPluginsList @plugins={{this.model}} />
|
|
|
|
{{else}}
|
|
|
|
<p>{{i18n "admin.plugins.none_installed"}}</p>
|
|
|
|
{{/if}}
|
2015-02-07 07:08:57 +08:00
|
|
|
|
2024-03-21 11:42:06 +08:00
|
|
|
<span>
|
|
|
|
<PluginOutlet
|
|
|
|
@name="admin-below-plugins-index"
|
|
|
|
@connectorTagName="div"
|
|
|
|
@outletArgs={{hash model=this.model}}
|
|
|
|
/>
|
|
|
|
</span>
|
|
|
|
</div>
|