diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-10-15 10:44:24 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-10-15 10:44:24 +0200 |
commit | d65438f93151fe457d5bcabf6d2bc7df52f6793a (patch) | |
tree | 8b9c35a0ae5903fa094c5bb5cb3ca6dd15acfcd8 /settings/js/templates | |
parent | 82a5833217d8fb1a74e7838b3e2ccf2cb9e1b90c (diff) | |
download | nextcloud-server-d65438f93151fe457d5bcabf6d2bc7df52f6793a.tar.gz nextcloud-server-d65438f93151fe457d5bcabf6d2bc7df52f6793a.zip |
Compile federationscope menu handlebars template
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'settings/js/templates')
-rw-r--r-- | settings/js/templates/authtoken.handlebars | 26 | ||||
-rw-r--r-- | settings/js/templates/federationscopemenu.handlebars | 17 |
2 files changed, 43 insertions, 0 deletions
diff --git a/settings/js/templates/authtoken.handlebars b/settings/js/templates/authtoken.handlebars new file mode 100644 index 00000000000..7c222d863fe --- /dev/null +++ b/settings/js/templates/authtoken.handlebars @@ -0,0 +1,26 @@ +<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">{{allowFSAccess}}</label><br/> + </span></li> + {{/if}} + {{#if canDelete}} + <li> + <a class="icon icon-delete has-tooltip" title="{{disconnectText}}">{{revokeText}}</a> + </li> + {{/if}} + </div> + </td> +<tr> diff --git a/settings/js/templates/federationscopemenu.handlebars b/settings/js/templates/federationscopemenu.handlebars new file mode 100644 index 00000000000..e5cfd942f46 --- /dev/null +++ b/settings/js/templates/federationscopemenu.handlebars @@ -0,0 +1,17 @@ +<ul> + {{#each items}} + <li> + <a href="#" class="menuitem action action-{{name}} permanent {{#if active}}active{{/if}}" data-action="{{name}}"> + {{#if iconClass}} + <span class="icon {{iconClass}}"></span> + {{else}} + <span class="no-icon"></span> + {{/if}} + <p> + <strong class="menuitem-text">{{displayName}}</strong><br> + <span class="menuitem-text-detail">{{tooltip}}</span> + </p> + </a> + </li> + {{/each}} +</ul> |