summaryrefslogtreecommitdiff
path: root/app/views/flash.html
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/flash.html')
-rw-r--r--app/views/flash.html18
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}}