s1llyw0rdz/web/handler/html/index.html

40 lines
1.6 KiB
HTML
Raw Normal View History

2021-12-26 17:42:49 +00:00
{{ define "head" }}
<link rel="alternate" type="application/atom+xml" title="Atom feed" href="/feed.atom" />
{{ end }}
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-22 11:04:24 +00:00
<form action="/add" method="post">
{{ .csrfField }}
{{ template "status_form" .status }}
</form>
2021-12-24 11:27:11 +00:00
<p>
<a href="/about/status-updater">status updater</a> bookmarklet<br>
<a href="/current-status">status widget</a> for your homepage
</p>
2021-12-26 17:42:49 +00:00
<p><img src="/users/{{ .logged }}/badge.png"/><br><textarea style="width: 100%; max-width: 500px; box-sizing: border-box;"><a href="https://status.cafe/users/{{ .logged }}"><img src="https://status.cafe/users/{{ .logged }}/badge.png" alt="Status Cafe Profile"/></a></textarea></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-12-26 17:42:49 +00:00
<p><img src="/assets/button.png"/><br><textarea style="width: 100%; max-width: 500px; box-sizing: border-box;"><a href="https://status.cafe"><img src="https://status.cafe/assets/button.png" alt="Status Cafe"/></a></textarea></p></p>
<p><a href="/feed.atom">Subscribe via Atom</a></p>
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 }}