mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-23 13:18:13 -05:00
41 lines
1.4 KiB
HTML
41 lines
1.4 KiB
HTML
{{define "dashboard/api"}}
|
|
{{template "common/header" .}}
|
|
{{template "common/menu" .}}
|
|
<div class="nb-container">
|
|
<div class="ui container">
|
|
<div class="ui grid">
|
|
<div class="right floated right aligned twelve wide column">
|
|
<button class="ui right labeled nezha-primary-btn icon button" onclick="issueNewApiToken()"><i class="add icon"></i>
|
|
{{tr "IssueNewApiToken"}}
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<table class="ui very basic table">
|
|
<thead>
|
|
<tr>
|
|
<th>{{tr "Token"}}</th>
|
|
<th>{{tr "Note"}}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{range $token := .Tokens}}
|
|
<tr>
|
|
<td>{{$token.Token}}</td>
|
|
<td>{{$token.Note}}</td>
|
|
<td>
|
|
<div class="ui mini icon buttons">
|
|
<button class="ui button"
|
|
onclick="showConfirm('{{tr "DeleteToken"}}','{{tr "ConfirmToDeleteThisToken"}}',deleteRequest,'/api/token/'+{{$token.Token}})">
|
|
<i class="trash alternate outline icon"></i>
|
|
</button>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
{{template "component/api"}}
|
|
{{template "common/footer" .}}
|
|
{{end}} |