diff options
| author | Horus_Arch | 2015-02-24 18:58:08 +0100 |
|---|---|---|
| committer | Horus_Arch | 2015-02-24 18:58:08 +0100 |
| commit | 9e1d8d0fb2b57903b1c6c0c2765b7808655c74a0 (patch) | |
| tree | a3f8546269eec6edb84fa740bc485c37542498bc /views/jobs.html | |
| parent | 8763022c77f0ad8edf6578962a524715d99e8d39 (diff) | |
| download | statuspage-9e1d8d0fb2b57903b1c6c0c2765b7808655c74a0.tar.gz | |
Struct with flash and error messages to differentiate in template.
Diffstat (limited to 'views/jobs.html')
| -rw-r--r-- | views/jobs.html | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/views/jobs.html b/views/jobs.html index df54994..510339d 100644 --- a/views/jobs.html +++ b/views/jobs.html @@ -2,14 +2,18 @@ {{template "navbar.html"}} <div class="container"> <div class="row"> -{{range .}} +{{range .Error}} +<h4 class="col-md-4 col-md-offset-4 alert alert-danger alert-dismissible" role="alert"> + <button type="button" class="close" data-dismiss="alert" aria-label="close"><span aria-hidden="true">×</span></button> + {{.}} +</h4> +{{end}} +{{range .Success}} <h4 class="col-md-4 col-md-offset-4 alert alert-success alert-dismissible" role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="close"><span aria-hidden="true">×</span></button> {{.}} </h4> {{end}} - <div class="text-center"> - </div> </div> </div> <div class="container"> |
