mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
33 lines
967 B
Handlebars
33 lines
967 B
Handlebars
{{#if model}}
|
|
<table class='api-keys'>
|
|
<tr>
|
|
<th>{{i18n 'admin.api.key'}}</th>
|
|
<th>{{i18n 'admin.api.user'}}</th>
|
|
<th> </th>
|
|
</tr>
|
|
{{#each k in model}}
|
|
<tr>
|
|
<td class='key'>{{k.key}}</td>
|
|
<td>
|
|
{{#if k.user}}
|
|
{{#link-to 'adminUser' k.user}}
|
|
{{avatar k.user imageSize="small"}}
|
|
{{/link-to}}
|
|
{{else}}
|
|
{{i18n 'admin.api.all_users'}}
|
|
{{/if}}
|
|
</td>
|
|
<td>
|
|
<button class='btn' {{action "regenerateKey" k}}><i class="fa fa-undo"></i>{{i18n 'admin.api.regenerate'}}</button>
|
|
<button class='btn' {{action "revokeKey" k}}><i class="fa fa-times"></i>{{i18n 'admin.api.revoke'}}</button>
|
|
</td>
|
|
</tr>
|
|
{{/each}}
|
|
</table>
|
|
{{else}}
|
|
<p>{{i18n 'admin.api.none'}}</p>
|
|
{{/if}}
|
|
|
|
{{#unless hasMasterKey}}
|
|
<button class='btn' {{action "generateMasterKey"}}><i class="fa fa-key"></i>{{i18n 'admin.api.generate_master'}}</button>
|
|
{{/unless }}
|