29 lines
No EOL
1,020 B
HTML
29 lines
No EOL
1,020 B
HTML
{{ define "content" }}
|
|
<div class="cols">
|
|
<section>
|
|
<h2>Set your status</h2>
|
|
{{ if .form.Error }}
|
|
<p>{{ .form.Error }}</p>
|
|
{{ end }}
|
|
{{ template "flash" .flash }}
|
|
<form action="/add" method="post">
|
|
<div class="field">
|
|
<textarea name="content" maxlength="140" placeholder="What's new?" required style="width: 100%; box-sizing: border-box; height: 100px;" autofocus></textarea>
|
|
</div>
|
|
<input type="submit" value="Submit">
|
|
<ul class="tools">
|
|
<li>Install the <a href="/about/status-updater">status updater</a> bookmarklet</li>
|
|
<li>Add the <a href="/current-status">current status widget</a> to your homepage</li>
|
|
</ul>
|
|
</form>
|
|
</section>
|
|
<section>
|
|
<h2>Status stream</h2>
|
|
{{ range .statuses }}
|
|
<article class="status">
|
|
{{ template "status" . }}
|
|
</article>
|
|
{{ end }}
|
|
</section>
|
|
</div>
|
|
{{ end }} |