29 lines
No EOL
886 B
HTML
29 lines
No EOL
886 B
HTML
{{ define "content" }}
|
|
<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">
|
|
<textarea name="content" placeholder="What's new?" required style="width: 100%; box-sizing: border-box;" autofocus></textarea>
|
|
</div>
|
|
<br>
|
|
<input type="submit" value="Submit">
|
|
</form>
|
|
</section>
|
|
<section>
|
|
<h2>Status stream</h2>
|
|
{{ range .statuses }}
|
|
<article class="status">
|
|
<div class="username"><a href="/{{ .User }}">{{ .User }}</a>, {{ .TimeAgo }}</div>
|
|
<p>{{ .Content }}</p>
|
|
</article>
|
|
{{ end }}
|
|
</section>
|
|
</div>
|
|
{{ end }} |