2016-11-09 10:46:11 -06:00
|
|
|
{{#if model.length}}
|
2015-02-06 16:32:59 -06:00
|
|
|
|
2015-09-28 09:23:41 -05:00
|
|
|
{{#if currentUser.admin}}
|
|
|
|
{{d-button label="admin.plugins.change_settings"
|
|
|
|
icon="gear"
|
|
|
|
class='settings-button pull-right'
|
|
|
|
action="showSettings"}}
|
|
|
|
{{/if}}
|
2015-02-06 16:32:59 -06:00
|
|
|
|
|
|
|
<h3>{{i18n "admin.plugins.installed"}}</h3>
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
|
2015-07-02 11:45:17 -05:00
|
|
|
<table class="admin-plugins">
|
2015-05-13 11:13:25 -05:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>{{i18n "admin.plugins.name"}}</th>
|
|
|
|
<th>{{i18n "admin.plugins.version"}}</th>
|
2015-07-02 11:45:17 -05:00
|
|
|
<th>{{i18n "admin.plugins.enabled"}}</th>
|
|
|
|
<th></th>
|
2015-05-13 11:13:25 -05:00
|
|
|
</tr>
|
|
|
|
</thead>
|
2015-02-06 16:32:59 -06:00
|
|
|
<tbody>
|
2016-05-09 14:15:39 -05:00
|
|
|
{{#each model as |plugin|}}
|
2015-02-06 16:32:59 -06:00
|
|
|
<tr>
|
|
|
|
<td>
|
2015-02-06 17:08:57 -06:00
|
|
|
{{#if plugin.url}}
|
2016-05-06 15:04:38 -05:00
|
|
|
<a href={{plugin.url}} target="_blank">{{plugin.name}}</a>
|
2015-02-06 16:32:59 -06:00
|
|
|
{{else}}
|
|
|
|
{{plugin.name}}
|
|
|
|
{{/if}}
|
|
|
|
</td>
|
|
|
|
<td>{{plugin.version}}</td>
|
2015-07-02 11:45:17 -05: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}}
|
2015-09-08 12:28:05 -05:00
|
|
|
{{i18n "admin.plugins.is_enabled"}}
|
2015-07-02 11:45:17 -05:00
|
|
|
{{/if}}
|
|
|
|
</td>
|
|
|
|
<td>
|
2015-09-28 09:23:41 -05:00
|
|
|
{{#if currentUser.admin}}
|
|
|
|
{{#if plugin.enabled_setting}}
|
|
|
|
{{d-button action="showSettings" actionParam=plugin icon="gear" label="admin.plugins.change_settings_short"}}
|
|
|
|
{{/if}}
|
2015-07-02 11:45:17 -05:00
|
|
|
{{/if}}
|
|
|
|
</td>
|
2015-02-06 16:32:59 -06:00
|
|
|
</tr>
|
|
|
|
{{/each}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{{else}}
|
|
|
|
<p>{{i18n "admin.plugins.none_installed"}}</p>
|
|
|
|
{{/if}}
|
2015-02-06 17:08:57 -06:00
|
|
|
|
|
|
|
<p><a href="https://meta.discourse.org/t/install-a-plugin/19157">{{i18n "admin.plugins.howto"}}</a></p>
|
|
|
|
|