server/settings/js/authtoken.handlebars
Roeland Jago Douma d66e662492
Compile handlebars template for AuthTokenView
Fixes #11032
For https://github.com/orgs/nextcloud/projects/18

Compile the default authtoken handlebars view.
This avoids runtime compilations (speed) and avoids unsafe eval calls
thus allowing a stricter CSP.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2018-09-27 14:07:48 +02:00

26 lines
862 B
Handlebars

<tr data-id="{{id}}">
<td class="client">
<div class="{{icon}}" />
</td>
<td class="has-tooltip" title="{{title}}">
<span class="token-name">{{name}}</span>
</td>
<td>
<span class="last-activity has-tooltip" title="{{lastActivityTime}}">{{lastActivity}}</span></td>
<td class="more">
{{#if showMore}}<a class="icon icon-more"/>{{/if}}
<div class="popovermenu menu">
{{#if canScope}}
<li><span class="menuitem">
<input class="filesystem checkbox" type="checkbox" id="{{id}}_filesystem" {{#if scope.filesystem}}checked{{/if}}/>
<label for="{{id}}_filesystem">' + t('settings', 'Allow filesystem access') </label><br/>
</span></li>
{{/if}}
{{#if canDelete}}
<li>
<a class="icon icon-delete has-tooltip" title="' + t('settings', 'Disconnect') ">' + t('settings', 'Revoke') +'</a>
</li>
{{/if}}
</div>
</td>
<tr>