diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/users/templates/users-tokens.hbs')
-rw-r--r-- | server/sonar-web/src/main/js/apps/users/templates/users-tokens.hbs | 87 |
1 files changed, 0 insertions, 87 deletions
diff --git a/server/sonar-web/src/main/js/apps/users/templates/users-tokens.hbs b/server/sonar-web/src/main/js/apps/users/templates/users-tokens.hbs deleted file mode 100644 index 1080f88a5bd..00000000000 --- a/server/sonar-web/src/main/js/apps/users/templates/users-tokens.hbs +++ /dev/null @@ -1,87 +0,0 @@ -<div class="modal-head"> - <h2>{{t 'users.tokens'}}</h2> -</div> - -<div class="modal-body"> - <div class="js-modal-messages"></div> - - {{#notNull tokens}} - <table class="data zebra"> - <thead> - <tr> - <th>{{t 'name'}}</th> - <th class="text-right">{{t 'created'}}</th> - <th> </th> - </tr> - </thead> - <tbody> - {{#each tokens}} - <tr> - <td> - <div title="{{name}}"> - {{limitString name}} - </div> - </td> - <td class="thin nowrap text-right"> - {{d createdAt}} - </td> - <td class="thin nowrap text-right"> - <div class="big-spacer-left"> - <form class="js-revoke-token-form" data-token="{{name}}"> - {{#if deleting}} - <button class="button-red active input-small">{{t 'users.tokens.sure'}}</button> - {{else}} - <button class="button-red input-small">{{t 'users.tokens.revoke'}}</button> - {{/if}} - </form> - </div> - </td> - </tr> - {{else}} - <tr> - <td colspan="3"> - <span class="note">{{t 'users.no_tokens'}}</span> - </td> - </tr> - {{/each}} - </tbody> - </table> - {{/notNull}} - - <hr class="big-spacer-top big-spacer-bottom"> - - <h3 class="spacer-bottom">{{t 'users.generate_tokens'}}</h3> - - {{#each errors}} - <div class="alert alert-danger">{{msg}}</div> - {{/each}} - - <form class="js-generate-token-form"> - <input type="text" required maxlength="100" placeholder="{{t 'users.enter_token_name'}}"> - <button>{{t 'users.generate'}}</button> - </form> - - {{#if newToken}} - <div class="panel panel-white big-spacer-top"> - <div class="alert alert-warning"> - {{tp 'users.tokens.new_token_created' newToken.name}} - </div> - - <table class="data"> - <tr> - - <td class="thin"> - <button class="js-copy-to-clipboard" data-clipboard-text="{{newToken.token}}">{{t 'copy'}}</button> - </td> - <td class="nowrap"> - <code class="text-success">{{newToken.token}}</code> - </td> - </tr> - </table> - </div> - {{/if}} -</div> - -<div class="modal-foot"> - <a href="#" class="js-modal-close">{{t 'Done'}}</a> -</div> |