2016-11-10 00:46:11 +08:00
|
|
|
{{#if model.length}}
|
2015-02-07 06:32:59 +08:00
|
|
|
|
|
|
|
|
|
|
|
<h3>{{i18n "admin.plugins.installed"}}</h3>
|
|
|
|
|
|
|
|
|
2018-07-03 11:14:53 +08:00
|
|
|
<table class="admin-plugins grid">
|
2015-05-14 00:13:25 +08:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2018-04-06 12:44:31 +08:00
|
|
|
<th></th>
|
2015-05-14 00:13:25 +08:00
|
|
|
<th>{{i18n "admin.plugins.name"}}</th>
|
|
|
|
<th>{{i18n "admin.plugins.version"}}</th>
|
2015-07-03 00:45:17 +08:00
|
|
|
<th>{{i18n "admin.plugins.enabled"}}</th>
|
|
|
|
<th></th>
|
2015-05-14 00:13:25 +08:00
|
|
|
</tr>
|
|
|
|
</thead>
|
2015-02-07 06:32:59 +08:00
|
|
|
<tbody>
|
2016-05-10 03:15:39 +08:00
|
|
|
{{#each model as |plugin|}}
|
2015-02-07 06:32:59 +08:00
|
|
|
<tr>
|
|
|
|
<td>
|
2018-04-06 10:54:58 +08:00
|
|
|
{{#if plugin.is_official}}
|
|
|
|
{{d-icon "check-circle"
|
|
|
|
title="admin.plugins.official"
|
|
|
|
class="admin-plugins-official-badge"}}
|
|
|
|
{{/if}}
|
2015-02-07 06:32:59 +08:00
|
|
|
</td>
|
2018-04-06 12:44:31 +08:00
|
|
|
|
2018-07-03 11:14:53 +08:00
|
|
|
<td class="plugin-name">
|
2018-04-06 12:44:31 +08:00
|
|
|
{{#if plugin.url}}
|
|
|
|
<a href={{plugin.url}} target="_blank">{{plugin.name}}</a>
|
|
|
|
{{else}}
|
|
|
|
{{plugin.name}}
|
|
|
|
{{/if}}
|
|
|
|
</td>
|
2018-07-03 11:14:53 +08:00
|
|
|
<td class="version"> <div class="label">{{i18n "admin.plugins.version"}}</div>
|
|
|
|
{{plugin.version}}</td>
|
2015-07-03 00:45:17 +08:00
|
|
|
<td class="col-enabled">
|
2018-07-03 11:14:53 +08:00
|
|
|
<div class="label">{{i18n "admin.plugins.enabled"}}</div>
|
2015-07-03 00:45:17 +08:00
|
|
|
{{#if plugin.enabled_setting}}
|
|
|
|
{{#if plugin.enabled}}
|
|
|
|
{{i18n "admin.plugins.is_enabled"}}
|
|
|
|
{{else}}
|
|
|
|
{{i18n "admin.plugins.not_enabled"}}
|
|
|
|
{{/if}}
|
|
|
|
{{else}}
|
2015-09-09 01:28:05 +08:00
|
|
|
{{i18n "admin.plugins.is_enabled"}}
|
2015-07-03 00:45:17 +08:00
|
|
|
{{/if}}
|
|
|
|
</td>
|
2018-07-03 11:14:53 +08:00
|
|
|
<td class="settings">
|
2015-09-28 22:23:41 +08:00
|
|
|
{{#if currentUser.admin}}
|
|
|
|
{{#if plugin.enabled_setting}}
|
2019-01-22 19:02:02 +08:00
|
|
|
{{d-button class="btn-default" action=(route-action "showSettings") actionParam=plugin icon="cog" label="admin.plugins.change_settings_short"}}
|
2015-09-28 22:23:41 +08:00
|
|
|
{{/if}}
|
2015-07-03 00:45:17 +08:00
|
|
|
{{/if}}
|
|
|
|
</td>
|
2015-02-07 06:32:59 +08:00
|
|
|
</tr>
|
|
|
|
{{/each}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{{else}}
|
|
|
|
<p>{{i18n "admin.plugins.none_installed"}}</p>
|
|
|
|
{{/if}}
|
2015-02-07 07:08:57 +08:00
|
|
|
|
2018-06-06 05:47:30 +08:00
|
|
|
<p class="admin-plugins-howto"><a href="https://meta.discourse.org/t/install-a-plugin/19157">{{i18n "admin.plugins.howto"}}</a></p>
|
|
|
|
|
|
|
|
{{plugin-outlet name="admin-below-plugins-index" args=(hash model=model)}}
|