2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.model.length}}
|
2015-02-06 17:32:59 -05:00
|
|
|
<h3>{{i18n "admin.plugins.installed"}}</h3>
|
|
|
|
|
2018-07-02 23:14:53 -04:00
|
|
|
<table class="admin-plugins grid">
|
2015-05-13 12:13:25 -04:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2018-04-06 00:44:31 -04:00
|
|
|
<th></th>
|
2015-05-13 12:13:25 -04:00
|
|
|
<th>{{i18n "admin.plugins.name"}}</th>
|
|
|
|
<th>{{i18n "admin.plugins.version"}}</th>
|
2015-07-02 12:45:17 -04:00
|
|
|
<th>{{i18n "admin.plugins.enabled"}}</th>
|
|
|
|
<th></th>
|
2015-05-13 12:13:25 -04:00
|
|
|
</tr>
|
|
|
|
</thead>
|
2015-02-06 17:32:59 -05:00
|
|
|
<tbody>
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#each this.model as |plugin|}}
|
2022-11-11 06:43:20 -05:00
|
|
|
<tr data-plugin-name={{plugin.name}}>
|
2015-02-06 17:32:59 -05:00
|
|
|
<td>
|
2018-04-05 22:54:58 -04:00
|
|
|
{{#if plugin.is_official}}
|
|
|
|
{{d-icon
|
|
|
|
"check-circle"
|
|
|
|
title="admin.plugins.official"
|
|
|
|
class="admin-plugins-official-badge"
|
|
|
|
}}
|
|
|
|
{{/if}}
|
2015-02-06 17:32:59 -05:00
|
|
|
</td>
|
2018-04-06 00:44:31 -04:00
|
|
|
|
2018-07-02 23:14:53 -04:00
|
|
|
<td class="plugin-name">
|
2021-02-12 11:19:07 -05:00
|
|
|
<div class="name">
|
|
|
|
{{#if plugin.url}}
|
|
|
|
<a
|
|
|
|
href={{plugin.url}}
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
target="_blank"
|
|
|
|
>{{plugin.name}}</a>
|
|
|
|
{{else}}
|
|
|
|
{{plugin.name}}
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
<div class="about">
|
|
|
|
{{plugin.about}}
|
|
|
|
</div>
|
2018-04-06 00:44:31 -04:00
|
|
|
</td>
|
2018-07-02 23:14:53 -04:00
|
|
|
<td class="version">
|
|
|
|
<div class="label">{{i18n "admin.plugins.version"}}</div>
|
|
|
|
{{plugin.version}}
|
|
|
|
</td>
|
2015-07-02 12:45:17 -04:00
|
|
|
<td class="col-enabled">
|
2018-07-02 23:14:53 -04:00
|
|
|
<div class="label">{{i18n "admin.plugins.enabled"}}</div>
|
2015-07-02 12:45:17 -04:00
|
|
|
{{#if plugin.enabled_setting}}
|
|
|
|
{{#if plugin.enabled}}
|
|
|
|
{{i18n "admin.plugins.is_enabled"}}
|
|
|
|
{{else}}
|
|
|
|
{{i18n "admin.plugins.not_enabled"}}
|
|
|
|
{{/if}}
|
|
|
|
{{else}}
|
2015-09-08 13:28:05 -04:00
|
|
|
{{i18n "admin.plugins.is_enabled"}}
|
2015-07-02 12:45:17 -04:00
|
|
|
{{/if}}
|
|
|
|
</td>
|
2018-07-02 23:14:53 -04:00
|
|
|
<td class="settings">
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.currentUser.admin}}
|
2020-05-12 04:18:19 -04:00
|
|
|
{{#if plugin.has_settings}}
|
2022-06-30 06:30:50 -04:00
|
|
|
<DButton
|
|
|
|
@class="btn-default"
|
|
|
|
@action={{route-action "showSettings"}}
|
|
|
|
@actionParam={{plugin}}
|
|
|
|
@icon="cog"
|
|
|
|
@label="admin.plugins.change_settings_short"
|
|
|
|
/>
|
2015-09-28 10:23:41 -04:00
|
|
|
{{/if}}
|
2015-07-02 12:45:17 -04:00
|
|
|
{{/if}}
|
|
|
|
</td>
|
2015-02-06 17:32:59 -05:00
|
|
|
</tr>
|
|
|
|
{{/each}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{{else}}
|
|
|
|
<p>{{i18n "admin.plugins.none_installed"}}</p>
|
|
|
|
{{/if}}
|
2015-02-06 18:08:57 -05:00
|
|
|
|
2018-06-05 17:47:30 -04:00
|
|
|
<p class="admin-plugins-howto"><a
|
|
|
|
href="https://meta.discourse.org/t/install-a-plugin/19157"
|
|
|
|
>{{i18n "admin.plugins.howto"}}</a></p>
|
|
|
|
|
2023-01-31 06:33:26 -05:00
|
|
|
<span>
|
|
|
|
<PluginOutlet
|
|
|
|
@name="admin-below-plugins-index"
|
|
|
|
@connectorTagName="div"
|
2023-01-31 07:58:31 -05:00
|
|
|
@outletArgs={{hash model=this.model}}
|
2023-01-31 06:33:26 -05:00
|
|
|
/>
|
|
|
|
</span>
|