Elizabeth Hunt
5cc70cc656
All checks were successful
continuous-integration/drone/push Build is passing
16 lines
491 B
HTML
16 lines
491 B
HTML
{{ 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}}">
|
|
<p>{{$message.Message}}</p>
|
|
<div class="time timestamp">{{$message.Time.Format "2006-01-02T15:04:05Z07:00"}}</div>
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
</div>
|
|
{{ end }}
|