summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/home.html4
-rw-r--r--templates/messages.html3
2 files changed, 5 insertions, 2 deletions
diff --git a/templates/home.html b/templates/home.html
index 7e8ecb7..8594993 100644
--- a/templates/home.html
+++ b/templates/home.html
@@ -1,8 +1,8 @@
{{ define "content" }}
<p>please use this if you know who i am and know how to use this but need to get ahold of me while im away from computers.</p>
-<form action="/chat" method="GET" autocomplete="off">
+<form action="/chat/me" method="POST" autocomplete="off">
<label for="fren_id">fren id.</label>
- <input type="text" id="fren_id" name="fren_id">
+ <input type="password" id="fren_id" name="fren_id">
<input type="submit" value="login.">
</form>
{{ end }}
diff --git a/templates/messages.html b/templates/messages.html
index e09ac46..85764e3 100644
--- a/templates/messages.html
+++ b/templates/messages.html
@@ -1,5 +1,8 @@
{{ define "content" }}
<div id="chat-container" class="chat-container">
+ {{ if (eq (len .Messages) 0) }}
+ <p>nothing here so far...</p>
+ {{ end }}
{{ range $message := .Messages }}
<div class="message {{if $message.FrenSent}}fren{{end}}">
<div class="message-text {{if $message.FrenSent}}fren{{end}}">