summaryrefslogtreecommitdiffstats
path: root/settings/js/authtoken_view.js
diff options
context:
space:
mode:
Diffstat (limited to 'settings/js/authtoken_view.js')
-rw-r--r--settings/js/authtoken_view.js33
1 files changed, 1 insertions, 32 deletions
diff --git a/settings/js/authtoken_view.js b/settings/js/authtoken_view.js
index 523d548f205..0ab5ebe2b63 100644
--- a/settings/js/authtoken_view.js
+++ b/settings/js/authtoken_view.js
@@ -25,44 +25,13 @@
OC.Settings = OC.Settings || {};
- var TEMPLATE_TOKEN =
- '<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>';
-
var SubView = OC.Backbone.View.extend({
collection: null,
_template: undefined,
template: function (data) {
- if (_.isUndefined(this._template)) {
- this._template = Handlebars.compile(TEMPLATE_TOKEN);
- }
-
- return this._template(data);
+ return OC.Settings.Templates['authtoken'](data);
},
initialize: function (options) {