mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-23 13:18:13 -05:00
49 lines
1.8 KiB
HTML
49 lines
1.8 KiB
HTML
{{define "dashboard/server"}}
|
|
{{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 positive icon button" onclick="addOrEditServer()"><i
|
|
class="add icon"></i> 添加服务器
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<table class="ui very basic table">
|
|
<thead>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>备注</th>
|
|
<th>密钥</th>
|
|
<th>最后活跃</th>
|
|
<th>管理</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{range $server := .Servers}}
|
|
<tr>
|
|
<td>{{$server.ID}}</td>
|
|
<td>{{$server.Name}}</td>
|
|
<td>{{$server.Secret}}</td>
|
|
<td>{{$server.LastActive}}</td>
|
|
<td>
|
|
<div class="ui mini icon buttons">
|
|
<button class="ui button" onclick="addOrEditServer({{$server.Marshal}})">
|
|
<i class="edit icon"></i>
|
|
</button>
|
|
<button class="ui button"
|
|
onclick="showConfirm('删除节点','确认删除此监控节点?',deleteRequest,'/api/server/'+{{$server.ID}})">
|
|
<i class="delete icon"></i>
|
|
</button>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
{{template "component/server"}}
|
|
{{template "common/footer" .}}
|
|
{{end}} |