diff options
| author | Alexander Kavon <me+git@alexkavon.com> | 2024-01-23 06:33:20 -0500 |
|---|---|---|
| committer | Alexander Kavon <me+git@alexkavon.com> | 2024-01-23 06:33:20 -0500 |
| commit | 8d92bdf7da95e1085485c0e60b9dac19c246e235 (patch) | |
| tree | 5c346f8bdb10b3b8084a3b9e95c727f7fa3914be /ui/templates | |
| parent | 8510c36ded85740885e67b59ee2ec2360986c0a9 (diff) | |
move ui templates into src, update conf to handle other paths, export User Insert Hooks
Diffstat (limited to 'ui/templates')
| -rw-r--r-- | ui/templates/base.tmpl.html | 14 | ||||
| -rw-r--r-- | ui/templates/comments.tmpl.html | 16 | ||||
| -rw-r--r-- | ui/templates/messages.tmpl.html | 9 |
3 files changed, 0 insertions, 39 deletions
diff --git a/ui/templates/base.tmpl.html b/ui/templates/base.tmpl.html deleted file mode 100644 index a080925..0000000 --- a/ui/templates/base.tmpl.html +++ /dev/null @@ -1,14 +0,0 @@ -{{define "base"}} -<!DOCTYPE html> -<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> -{{end}} diff --git a/ui/templates/comments.tmpl.html b/ui/templates/comments.tmpl.html deleted file mode 100644 index b069bbd..0000000 --- a/ui/templates/comments.tmpl.html +++ /dev/null @@ -1,16 +0,0 @@ -{{define "comments"}} -<div id="post-comments"> - {{range $comment := .comments }} - <span class="comment-author">by <a href="/u/{{$comment.username}}">{{$comment.username}}</a></span> - <span class="comment-created-at">{{$comment.created_at}}</span> - <span class="actions"> - <span class="action-flag">Flag</span> - <span class="action-hide">Hide</span> - <span class="action-reply">Reply</span> - </span> - <div class="c-alert c-alert--info" role="alert"> - {{ $comment.body }} - </div> - {{ end }} -</div> -{{end}} diff --git a/ui/templates/messages.tmpl.html b/ui/templates/messages.tmpl.html deleted file mode 100644 index dd5bfb1..0000000 --- a/ui/templates/messages.tmpl.html +++ /dev/null @@ -1,9 +0,0 @@ -{{define "messages"}} -<div id="messages"> - {{ if .message }} - <div class="c-alert c-alert--info" role="alert"> - {{ .message }} - </div> - {{ end }} -</div> -{{end}} |
