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-26 22:36:48 +00:00
< textarea name = "content" maxlength = "140" 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 >
< input type = "submit" value = "Submit" >
2021-11-25 05:51:40 +00:00
< h3 > Update status with bookmarklet< / h3 >
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-25 05:51:40 +00:00
< h3 > Display status on your homepage< / h3 >
< p > todo< / p >
2021-11-22 20:23:30 +00:00
< / form >
< / section >
< section >
< h2 > Status stream< / h2 >
{{ range .statuses }}
2021-11-25 05:56:21 +00:00
{{ template "status" . }}
2021-11-22 20:23:30 +00:00
{{ end }}
< / section >
< / div >
2021-11-22 09:06:23 +00:00
{{ end }}