2015-02-07 06:32:59 +08:00
|
|
|
{{#if length}}
|
|
|
|
|
|
|
|
{{d-button label="admin.plugins.change_settings"
|
|
|
|
icon="gear"
|
|
|
|
class='settings-button pull-right'
|
|
|
|
action="showSettings"}}
|
|
|
|
|
|
|
|
<h3>{{i18n "admin.plugins.installed"}}</h3>
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
|
2015-07-03 00:45:17 +08:00
|
|
|
<table class="admin-plugins">
|
2015-05-14 00:13:25 +08:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<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>
|
|
|
|
{{#each plugin in controller}}
|
|
|
|
<tr>
|
|
|
|
<td>
|
2015-02-07 07:08:57 +08:00
|
|
|
{{#if plugin.url}}
|
|
|
|
<a {{bind-attr href=plugin.url}} target="_blank">{{plugin.name}}</a>
|
2015-02-07 06:32:59 +08:00
|
|
|
{{else}}
|
|
|
|
{{plugin.name}}
|
|
|
|
{{/if}}
|
|
|
|
</td>
|
|
|
|
<td>{{plugin.version}}</td>
|
2015-07-03 00:45:17 +08:00
|
|
|
<td class="col-enabled">
|
|
|
|
{{#if plugin.enabled_setting}}
|
|
|
|
{{#if plugin.enabled}}
|
|
|
|
{{i18n "admin.plugins.is_enabled"}}
|
|
|
|
{{else}}
|
|
|
|
{{i18n "admin.plugins.not_enabled"}}
|
|
|
|
{{/if}}
|
|
|
|
{{else}}
|
|
|
|
{{i18n "admin.plugins.cant_disable"}}
|
|
|
|
{{/if}}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{#if plugin.enabled_setting}}
|
|
|
|
<button {{action "showSettings" plugin}} class="btn">
|
|
|
|
{{fa-icon "gear"}}
|
|
|
|
{{i18n "admin.plugins.change_settings_short"}}
|
|
|
|
</button>
|
|
|
|
{{/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
|
|
|
|
|
|
|
<p><a href="https://meta.discourse.org/t/install-a-plugin/19157">{{i18n "admin.plugins.howto"}}</a></p>
|
|
|
|
|