2019-12-08 10:18:29 -05:00
|
|
|
{{define "page/server"}}
|
|
|
|
{{template "common/header" .}}
|
|
|
|
{{template "common/menu" .}}
|
|
|
|
<div class="nb-container">
|
|
|
|
<div class="ui container">
|
2019-12-20 10:58:09 -05:00
|
|
|
<button class="ui right labeled positive icon button" onclick="addOrEditServer()"><i class="add icon"></i> 添加服务器
|
2019-12-08 10:18:29 -05:00
|
|
|
</button>
|
|
|
|
<table class="ui very basic table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>ID</th>
|
|
|
|
<th>备注</th>
|
|
|
|
<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>
|
|
|
|
<td>{{$server.ID}}</td>
|
|
|
|
<td>{{$server.Name}}</td>
|
|
|
|
<td>{{$server.Secret}}</td>
|
2019-12-20 10:58:09 -05:00
|
|
|
<td>
|
|
|
|
<div class="ui mini icon buttons">
|
|
|
|
<button class="ui button" onclick="addOrEditServer({{$server}})">
|
|
|
|
<i class="edit icon"></i>
|
|
|
|
</button>
|
|
|
|
<button class="ui button">
|
|
|
|
<i class="delete icon"></i>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</td>
|
2019-12-08 10:18:29 -05:00
|
|
|
</tr>
|
|
|
|
{{end}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{template "component/server"}}
|
|
|
|
{{template "common/footer" .}}
|
|
|
|
{{end}}
|