pull/94/head
Hunter Long 2018-11-07 01:28:46 -08:00
parent 8c0c4f4e5c
commit b03bb66089
3 changed files with 11 additions and 2 deletions

View File

@ -224,6 +224,7 @@ clean:
rm -rf utils/{logs,assets,plugins,statup.db,config.yml,.sass-cache,*.log}
rm -rf dev/test/cypress/videos
rm -f coverage.* sass
rm -f source/rice-box.go
find . -name "*.out" -type f -delete
find . -name "*.cpu" -type f -delete
find . -name "*.mem" -type f -delete

View File

@ -16,6 +16,7 @@
package notifiers
import (
"errors"
"github.com/hunterlong/statup/core/notifier"
"github.com/hunterlong/statup/types"
"github.com/hunterlong/statup/utils"
@ -89,6 +90,10 @@ func runCommand(app, cmd string) (string, string, error) {
return "", "", err
}
if errStdout != nil || errStderr != nil {
return "", "", errors.New("failed to capture stdout or stderr")
}
outStr, errStr := string(stdout), string(stderr)
return outStr, errStr, err
}

View File

@ -2,6 +2,7 @@
{{define "content"}}
<div class="container col-md-7 col-sm-12 mt-md-5 bg-light">
{{template "nav"}}
{{if .}}
<div class="col-12">
<h3>Messages</h3>
<table class="table table-striped">
@ -29,11 +30,13 @@
{{end}}
</tbody>
</table>
</div>
{{end}}
<div class="col-12">
<h3>Create Message</h3>
{{template "form_message" NewMessage}}
</div>
</div>
</div>
{{end}}
{{define "extra_css"}}