2021-11-22 09:06:23 +00:00
{{ define "content" }}
2021-11-22 20:23:30 +00:00
< div class = "cols" >
< section >
< h2 > Set your status< / h2 >
{{ if .form.Error }}
< p > {{ .form.Error }}< / p >
{{ end }}
{{ if .flash }}
< p > {{ .flash }}< / p >
{{ end }}
< form action = "/status-save" method = "post" >
< div class = "field" >
2021-11-24 06:30:19 +00:00
< textarea name = "content" placeholder = "What's new?" required style = "width: 100%; box-sizing: border-box; height: 100px;" autofocus > < / textarea >
2021-11-22 20:23:30 +00:00
< / div >
< br >
< input type = "submit" value = "Submit" >
2021-11-24 06:30:19 +00:00
< p > Drag to your bookmarks to update from anywhere: < a href = "javascript:void(open('https://status.cafe/status-new','status.cafe','resizable,scrollbars,width=360,height=200'))" > Set status< / a > < / p >
2021-11-22 20:23:30 +00:00
< / form >
< / section >
< section >
< h2 > Status stream< / h2 >
{{ range .statuses }}
< article class = "status" >
2021-11-24 06:30:19 +00:00
< div class = "username" > < a href = "/users/{{ .User }}" > {{ .User }}< / a > , {{ .TimeAgo }}< / div >
2021-11-22 20:23:30 +00:00
< p > {{ .Content }}< / p >
< / article >
{{ end }}
< / section >
< / div >
2021-11-22 09:06:23 +00:00
{{ end }}