diff options
Diffstat (limited to 'ui/templates')
| -rw-r--r-- | ui/templates/base.tmpl.html | 2 | ||||
| -rw-r--r-- | ui/templates/messages.tmpl.html | 9 |
2 files changed, 11 insertions, 0 deletions
diff --git a/ui/templates/base.tmpl.html b/ui/templates/base.tmpl.html index 4e28bc0..a080925 100644 --- a/ui/templates/base.tmpl.html +++ b/ui/templates/base.tmpl.html @@ -3,9 +3,11 @@ <html lang="en"> <head> <title>{{template "title" .}} | newsstand.nyc</title> + <link rel="stylesheet" href="https://unpkg.com/@blaze/css@x.x.x/dist/blaze/blaze.css"> <script src="https://unpkg.com/htmx.org@1.9.9" integrity="sha384-QFjmbokDn2DjBjq+fM+8LUIVrAgqcNW2s0PjAxHETgRn9l4fvX31ZxDxvwQnyMOX" crossorigin="anonymous"></script> </head> <body> + {{template "messages" .}} {{template "main" .}} </body> </html> diff --git a/ui/templates/messages.tmpl.html b/ui/templates/messages.tmpl.html new file mode 100644 index 0000000..b9d327f --- /dev/null +++ b/ui/templates/messages.tmpl.html @@ -0,0 +1,9 @@ +{{define "messages"}} +<div id="messages"> + {{ if .Message }} + <div class="c-alert c-alert--info" role="alert"> + {{.Message}} + </div> + {{ end }} +</div> +{{end}} |
