diff options
| author | Horus_Arch | 2015-02-14 23:11:57 +0100 |
|---|---|---|
| committer | Horus_Arch | 2015-02-14 23:11:57 +0100 |
| commit | 2f9fe2cfad83416647beed9c3c9085d686c43b09 (patch) | |
| tree | fce1e043672f94cf42f8197079ce6fb3017dade0 /app/views/flash.html | |
| download | freemail-2f9fe2cfad83416647beed9c3c9085d686c43b09.tar.gz | |
Initial commit.
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}} |
