mirror of https://github.com/statping/statping
grouping
parent
5e60b5578b
commit
bcedc75c8e
|
@ -31,8 +31,8 @@ import (
|
|||
|
||||
func TestResetHandlerDatabase(t *testing.T) {
|
||||
Clean()
|
||||
loadDatabase()
|
||||
createDatabase()
|
||||
//loadDatabase()
|
||||
//createDatabase()
|
||||
}
|
||||
|
||||
func TestFailedHTTPServer(t *testing.T) {
|
||||
|
|
|
@ -36,8 +36,7 @@
|
|||
{{end}}
|
||||
</div>
|
||||
|
||||
<div class="col-12">
|
||||
{{if ne (len .Groups) 0}}
|
||||
<div class="col-12 mt-3">
|
||||
<h3>Groups</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
|
@ -46,21 +45,19 @@
|
|||
<th scope="col"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="sortable" id="services_table">
|
||||
<tbody class="sortable" id="groups_table">
|
||||
{{range .Groups}}
|
||||
<tr id="group_{{.Id}}" data-id="{{.Id}}">
|
||||
<td><span class="drag_icon d-none d-md-inline"><i class="fas fa-bars"></i></span> {{.Name}}</td>
|
||||
<td>{{.Name}}</td>
|
||||
<td class="text-right">
|
||||
<div class="btn-group">
|
||||
<a href="/service/{{.Id}}" class="btn btn-outline-secondary"><i class="fas fa-chart-area"></i> View</a>
|
||||
{{if Auth}}<a href="/api/groups/{{.Id}}" class="ajax_delete btn btn-danger" data-method="DELETE" data-obj="groups_{{.Id}}" data-id="{{.Id}}"><i class="fas fa-times"></i></a>{{end}}
|
||||
{{if Auth}}<a href="/api/groups/{{.Id}}" class="ajax_delete btn btn-danger" data-method="DELETE" data-obj="group_{{.Id}}" data-id="{{.Id}}"><i class="fas fa-times"></i></a>{{end}}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{{end}}
|
||||
</tbody>
|
||||
</table>
|
||||
{{end}}
|
||||
{{if Auth}}
|
||||
<h3>Create Group</h3>
|
||||
{{template "form_group" NewGroup}}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Code generated by go generate; DO NOT EDIT.
|
||||
// This file was generated by robots at
|
||||
// 2018-12-31 13:16:43.415892 -0800 PST m=+1.140052566
|
||||
// 2019-01-03 07:34:25.019934 -0800 PST m=+0.528929648
|
||||
//
|
||||
// This contains the most recently Markdown source for the Statping Wiki.
|
||||
package source
|
||||
|
|
|
@ -1 +1 @@
|
|||
0.80.32
|
||||
0.80.33
|
Loading…
Reference in New Issue