s1llyw0rdz/web/handler/html/index.html

31 lines
961 B
HTML
Raw Normal View History

2021-11-22 09:06:23 +00:00
{{ define "content" }}
2021-11-22 20:23:30 +00:00
<div class="cols">
<section>
2021-12-04 15:22:30 +00:00
{{ if .logged }}
2021-11-22 20:23:30 +00:00
<h2>Set your status</h2>
{{ if .form.Error }}
<p>{{ .form.Error }}</p>
{{ end }}
2021-12-02 20:41:17 +00:00
<form action="/add" method="post">{{ template "status_form" .status }}</form>
2021-11-30 20:50:10 +00:00
<ul class="tools">
<li><a href="/about/status-updater">status updater</a> bookmarklet</li>
<li><a href="/current-status">status widget</a> for your homepage</li>
</ul>
2021-12-10 17:48:24 +00:00
<p><a href="/feed.atom">Subscribe via Atom</a></p>
2021-12-04 15:22:30 +00:00
{{ else }}
<h2>Welcome!</h2>
<p>status.cafe is a place to share your current status.</p>
<p><a href="/register">Register now!</a></p>
{{ end }}
2021-11-22 20:23:30 +00:00
</section>
<section>
<h2>Status stream</h2>
{{ range .statuses }}
2021-11-27 09:39:34 +00:00
<article class="status">
{{ template "status" . }}
</article>
2021-11-22 20:23:30 +00:00
{{ end }}
</section>
</div>
2021-11-30 20:50:10 +00:00
{{ end }}