pull/119/head
Hunter Long 2019-01-03 09:36:30 -08:00
parent 5e60b5578b
commit bcedc75c8e
4 changed files with 8 additions and 11 deletions

View File

@ -31,8 +31,8 @@ import (
func TestResetHandlerDatabase(t *testing.T) { func TestResetHandlerDatabase(t *testing.T) {
Clean() Clean()
loadDatabase() //loadDatabase()
createDatabase() //createDatabase()
} }
func TestFailedHTTPServer(t *testing.T) { func TestFailedHTTPServer(t *testing.T) {

View File

@ -36,8 +36,7 @@
{{end}} {{end}}
</div> </div>
<div class="col-12"> <div class="col-12 mt-3">
{{if ne (len .Groups) 0}}
<h3>Groups</h3> <h3>Groups</h3>
<table class="table"> <table class="table">
<thead> <thead>
@ -46,21 +45,19 @@
<th scope="col"></th> <th scope="col"></th>
</tr> </tr>
</thead> </thead>
<tbody class="sortable" id="services_table"> <tbody class="sortable" id="groups_table">
{{range .Groups}} {{range .Groups}}
<tr id="group_{{.Id}}" data-id="{{.Id}}"> <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"> <td class="text-right">
<div class="btn-group"> <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="group_{{.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="groups_{{.Id}}" data-id="{{.Id}}"><i class="fas fa-times"></i></a>{{end}}
</div> </div>
</td> </td>
</tr> </tr>
{{end}} {{end}}
</tbody> </tbody>
</table> </table>
{{end}}
{{if Auth}} {{if Auth}}
<h3>Create Group</h3> <h3>Create Group</h3>
{{template "form_group" NewGroup}} {{template "form_group" NewGroup}}

View File

@ -1,6 +1,6 @@
// Code generated by go generate; DO NOT EDIT. // Code generated by go generate; DO NOT EDIT.
// This file was generated by robots at // 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. // This contains the most recently Markdown source for the Statping Wiki.
package source package source

View File

@ -1 +1 @@
0.80.32 0.80.33