Add notifications
This commit is contained in:
parent
6545cbdff8
commit
e68f41445e
8 changed files with 114 additions and 63 deletions
|
@ -78,11 +78,9 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
{{with .Notif}}
|
||||
{{if .Msg}}
|
||||
<div class="alert alert-{{.Tpe}}">
|
||||
{{range .Notif}}
|
||||
<div class="alert alert-{{.Type}}">
|
||||
<button class="close" data-dismiss="alert">×</button>
|
||||
<strong>{{.Title}}</strong> {{.Msg}}
|
||||
</div>
|
||||
{{end}}
|
||||
{{end}}
|
||||
|
|
Reference in a new issue