oficina / base Public

Clone
git clone https://amadan.net/oficina/base

Plain git — no account needed to clone.

Download

Download this file

1{{define "title"}}Scratchpad · {{.Base}}{{end}}
2{{define "main"}}<main class="inner">
3<div class="sheet glass">
4<div class="crumb"><a class="wordmark" href="{{.Home}}">base</a><span>Scratchpad</span></div>
5<h2>Scratchpad</h2>
6<p class="lead">Signed in as {{.Name}}, {{.Base}}</p>
7{{if .Conflict}}<p role="status">Someone else saved this note while you were editing it. Your text is below and hasn't been saved. Save again to replace their version.</p>
8<label class="saved">The note as it was saved
9<textarea class="input" rows="8" readonly>
10{{.Saved}}</textarea></label>
11{{end}}<form class="notepad" method="post" action="/">
12<input type="hidden" name="revision" value="{{.Revision}}">
13{{/* The newline after the opening tag is dropped by the parser, so a note that starts with one keeps it. */}}<textarea class="input" name="note" rows="14" aria-label="{{if .Conflict}}Your text{{else}}Shared note{{end}}">
14{{.Note}}</textarea>
15<button class="btn" type="submit">Save</button>
16</form>
17<form method="post" action="/auth/signout"><button class="btn ghost" type="submit">Sign out of Scratchpad</button></form>
18</div>
19</main>{{end}}
20