discourse/app/assets/javascripts/admin/templates/plugins-index.hbs

62 lines
1.7 KiB
Handlebars
Raw Normal View History

{{#if length}}
{{#if currentUser.admin}}
{{d-button label="admin.plugins.change_settings"
icon="gear"
class='settings-button pull-right'
action="showSettings"}}
{{/if}}
<h3>{{i18n "admin.plugins.installed"}}</h3>
<br/>
<table class="admin-plugins">
2015-05-13 12:13:25 -04:00
<thead>
<tr>
<th>{{i18n "admin.plugins.name"}}</th>
<th>{{i18n "admin.plugins.version"}}</th>
<th>{{i18n "admin.plugins.enabled"}}</th>
<th></th>
2015-05-13 12:13:25 -04:00
</tr>
</thead>
<tbody>
{{#each model as |plugin|}}
<tr>
<td>
{{#if plugin.url}}
<a href={{plugin.url}} target="_blank">{{plugin.name}}</a>
{{else}}
{{plugin.name}}
{{/if}}
</td>
<td>{{plugin.version}}</td>
<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.is_enabled"}}
{{/if}}
</td>
<td>
{{#if currentUser.admin}}
{{#if plugin.enabled_setting}}
{{d-button action="showSettings" actionParam=plugin icon="gear" label="admin.plugins.change_settings_short"}}
{{/if}}
{{/if}}
</td>
</tr>
{{/each}}
</tbody>
</table>
{{else}}
<p>{{i18n "admin.plugins.none_installed"}}</p>
{{/if}}
<p><a href="https://meta.discourse.org/t/install-a-plugin/19157">{{i18n "admin.plugins.howto"}}</a></p>