summaryrefslogtreecommitdiff
path: root/templates/messages.html
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2025-01-03 01:47:07 -0800
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2025-01-03 01:47:07 -0800
commitf163a242792cd325c9414587d52f3d8584f28df1 (patch)
treeb57ad121cc3f4ffc2bc55f4d63bfaaf6026dd239 /templates/messages.html
downloadphoneof-f163a242792cd325c9414587d52f3d8584f28df1.tar.gz
phoneof-f163a242792cd325c9414587d52f3d8584f28df1.zip
initial commit
Diffstat (limited to 'templates/messages.html')
-rw-r--r--templates/messages.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/messages.html b/templates/messages.html
new file mode 100644
index 0000000..e09ac46
--- /dev/null
+++ b/templates/messages.html
@@ -0,0 +1,12 @@
+{{ define "content" }}
+<div id="chat-container" class="chat-container">
+ {{ range $message := .Messages }}
+ <div class="message {{if $message.FrenSent}}fren{{end}}">
+ <div class="message-text {{if $message.FrenSent}}fren{{end}}">
+ <p>{{$message.Message}}</p>
+ <div class="time timestamp">{{$message.Time.Format "2006-01-02T15:04:05Z07:00"}}</div>
+ </div>
+ </div>
+ {{ end }}
+</div>
+{{ end }}