40 lines
1.8 KiB
HTML
40 lines
1.8 KiB
HTML
{{ define "head" }}
|
|
<link rel="alternate" type="application/atom+xml" title="Atom feed" href="/feed.atom" />
|
|
{{ end }}
|
|
|
|
{{ define "content" }}
|
|
<div class="cols">
|
|
<section>
|
|
{{ if .logged }}
|
|
<h2>Set your status</h2>
|
|
{{ if .form.Error }}
|
|
<p>{{ .form.Error }}</p>
|
|
{{ end }}
|
|
<form action="/add" method="post">
|
|
{{ .csrfField }}
|
|
{{ template "status_form" .status }}
|
|
</form>
|
|
<p>
|
|
<a href="/about/status-updater">status updater</a> bookmarklet<br>
|
|
<a href="/current-status">status widget</a> for your homepage
|
|
</p>
|
|
<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>
|
|
{{ 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 }}
|
|
<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>
|
|
</section>
|
|
<section>
|
|
<h2>Status stream</h2>
|
|
<p class="flash">The <a href="https://forum.status.cafe">forum</a> has opened! <a href="/forum-key">Generate your key</a> to <a href="https://forum.status.cafe/register">register</a>. Best viewed with a hot beverage.</p>
|
|
{{ range .statuses }}
|
|
<article class="status">
|
|
{{ template "status" . }}
|
|
</article>
|
|
{{ end }}
|
|
</section>
|
|
</div>
|
|
{{ end }}
|