bosun.org@v0.0.0-20210513094433-e25bc3e69a1f/cmd/bosun/web/static/partials/tokenList.html (about)

     1  <div class="alert alert-danger" ng-show="ct.status">{{ct.status}}</div>
     2  <h2>Access Tokens</h2>
     3  <table class="table table-striped">
     4      <thead>
     5          <tr>
     6              <th>ID</th>
     7              <th>User</th>
     8              <th>Description</th>
     9              <th>Permissions</th>
    10              <th>Last Used</th>
    11              <th></th>
    12          </tr>
    13      </thead>
    14      <tbody>
    15          <tr ng-repeat="tok in ct.tokens | orderBy:'-LastUsed'">
    16              <td>{{tok.Hash | limitTo: 6}}</td>
    17              <td>{{tok.User}}</td>
    18              <td>{{tok.Description}}</td>
    19              <td>
    20                  <a data-template="{{ct.permList(tok)}}" data-animation="am-flip-x" data-trigger="hover" data-auto-close="1" bs-popover>{{tok.RoleName}}</a>
    21              </td>
    22              <td><span ng-if="tok.LastUsed.year() > 2000" ts-since="tok.LastUsed"></span> <span ng-if="tok.LastUsed.year() <= 2000">Never</span></td>
    23              <td>
    24                  <a class='btn btn-danger fa fa-trash' ng-click='ct.deleteTarget = tok.Hash' data-toggle="modal" data-target="#myModal"></a>
    25              </td>
    26          </tr>
    27      </tbody>
    28  </table>
    29  <a class='btn btn-primary' href='/tokens/new'><span class='fa fa-plus' /> Create new token</a>
    30  
    31  <div class="modal fade" tabindex="-1" role="dialog" id="myModal">
    32      <div class="modal-dialog" role="document">
    33          <div class="modal-content">
    34              <div class="modal-header">
    35                  <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
    36                  <h4 class="modal-title">Confirm Delete</h4>
    37              </div>
    38              <div class="modal-body">
    39                  <p>Really delete token?</p>
    40              </div>
    41              <div class="modal-footer">
    42                  <button type="button" class="btn btn-danger" ng-click='ct.delete()' data-dismiss="modal">Delete</button>
    43                  <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
    44              </div>
    45          </div>
    46      </div>
    47  </div>