2020-12-09 06:05:40 -05:00
|
|
|
{{define "dashboard/server"}}
|
2019-12-08 10:18:29 -05:00
|
|
|
{{template "common/header" .}}
|
|
|
|
{{template "common/menu" .}}
|
|
|
|
<div class="nb-container">
|
|
|
|
<div class="ui container">
|
2020-03-22 08:55:27 -04:00
|
|
|
<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>
|
2019-12-08 10:18:29 -05:00
|
|
|
<table class="ui very basic table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2021-01-30 04:10:51 -05:00
|
|
|
<th>ID(排序)</th>
|
2021-01-29 22:22:59 -05:00
|
|
|
<th>名称</th>
|
2021-01-20 06:24:59 -05:00
|
|
|
<th>分组</th>
|
2021-01-08 08:04:50 -05:00
|
|
|
<th>IP</th>
|
2021-06-21 09:30:42 -04:00
|
|
|
<th>版本号</th>
|
2019-12-08 10:18:29 -05:00
|
|
|
<th>密钥</th>
|
2021-01-29 22:22:59 -05:00
|
|
|
<th>备注</th>
|
2019-12-20 10:58:09 -05:00
|
|
|
<th>管理</th>
|
2019-12-08 10:18:29 -05:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{range $server := .Servers}}
|
|
|
|
<tr>
|
2021-01-30 04:10:51 -05:00
|
|
|
<td>{{$server.ID}}({{$server.DisplayIndex}})</td>
|
2019-12-08 10:18:29 -05:00
|
|
|
<td>{{$server.Name}}</td>
|
2021-01-12 01:09:25 -05:00
|
|
|
<td>{{$server.Tag}}</td>
|
2021-01-08 08:04:50 -05:00
|
|
|
<td>{{$server.Host.IP}}</td>
|
2021-06-21 09:30:42 -04:00
|
|
|
<td>{{$server.Host.Version}}</td>
|
2019-12-08 10:18:29 -05:00
|
|
|
<td>{{$server.Secret}}</td>
|
2021-01-20 06:24:59 -05:00
|
|
|
<td style="word-break: break-word;">{{$server.Note}}</td>
|
2019-12-20 10:58:09 -05:00
|
|
|
<td>
|
|
|
|
<div class="ui mini icon buttons">
|
2020-12-08 21:27:00 -05:00
|
|
|
<button class="ui button" onclick="addOrEditServer({{$server.Marshal}})">
|
2019-12-20 10:58:09 -05:00
|
|
|
<i class="edit icon"></i>
|
|
|
|
</button>
|
2020-03-22 08:55:27 -04:00
|
|
|
<button class="ui button"
|
|
|
|
onclick="showConfirm('删除节点','确认删除此监控节点?',deleteRequest,'/api/server/'+{{$server.ID}})">
|
2021-01-20 06:24:59 -05:00
|
|
|
<i class="trash alternate outline icon"></i>
|
2019-12-20 10:58:09 -05:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</td>
|
2019-12-08 10:18:29 -05:00
|
|
|
</tr>
|
|
|
|
{{end}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{template "component/server"}}
|
|
|
|
{{template "common/footer" .}}
|
|
|
|
{{end}}
|