diff options
-rw-r--r-- | system/admin/admin.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/system/admin/admin.go b/system/admin/admin.go index 243af1f..4a72af0 100644 --- a/system/admin/admin.go +++ b/system/admin/admin.go @@ -5,7 +5,6 @@ package admin import ( "bytes" "encoding/json" - "fmt" "html/template" "net/http" @@ -293,6 +292,7 @@ func UsersList(req *http.Request) ([]byte, error) { <ul class="users row"> <div class="card-title">Remove Admin Users</div> {{ range .Users }} + {{ if .Email}} <li class="col s12"> {{ .Email }} <form enctype="multipart/form-data" class="delete-user __ponzu right" action="/admin/configure/users/delete" method="post"> @@ -302,6 +302,7 @@ func UsersList(req *http.Request) ([]byte, error) { </form> <li> {{ end }} + {{ end }} </ul> </div> ` @@ -347,8 +348,6 @@ func UsersList(req *http.Request) ([]byte, error) { } } - fmt.Println(usrs) - // make buffer to execute html into then pass buffer's bytes to Admin buf := &bytes.Buffer{} tmpl := template.Must(template.New("users").Parse(html + script)) |