diff options
| author | Horus3 | 2015-02-05 02:55:30 +0100 |
|---|---|---|
| committer | Horus3 | 2015-02-05 02:55:30 +0100 |
| commit | af1f4677c685e8a2c4967ffa0350d314a6543db7 (patch) | |
| tree | 7b749014441c732b75789eec4b93dc885f4a1f8f /app/views/flash.html | |
| download | webmon-af1f4677c685e8a2c4967ffa0350d314a6543db7.tar.gz | |
Init
Diffstat (limited to 'app/views/flash.html')
| -rw-r--r-- | app/views/flash.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/app/views/flash.html b/app/views/flash.html new file mode 100644 index 0000000..9c9ade9 --- /dev/null +++ b/app/views/flash.html @@ -0,0 +1,18 @@ +{{if .flash.success}} +<div class="alert alert-success"> + {{.flash.success}} +</div> +{{end}} + +{{if or .errors .flash.error}} +<div class="alert alert-error"> + {{if .flash.error}} + {{.flash.error}} + {{end}} + <ul style="margin-top:10px;"> + {{range .errors}} + <li>{{.}}</li> + {{end}} + </ul> +</div> +{{end}} |
