first commit

This commit is contained in:
Blake Ridgway
2026-04-11 14:01:09 -05:00
commit 6915cab5f3
22 changed files with 1842 additions and 0 deletions

58
templates/new.html Normal file
View File

@@ -0,0 +1,58 @@
{{define "title"}}new paste — paste.ridgwaysystems.org{{end}}
{{define "content"}}
<div class="page-header">
<h1>new paste</h1>
</div>
{{if .Error}}
<div class="form-error">{{.Error}}</div>
{{end}}
<form method="POST" action="/new" class="paste-form">
<input type="hidden" name="csrf_token" value="{{.CSRFToken}}">
<div class="form-row">
<label for="title">title</label>
<input type="text" id="title" name="title" placeholder="Untitled" autocomplete="off">
</div>
<div class="paste-form-meta">
<div class="form-row">
<label for="language">language</label>
<select id="language" name="language">
{{range .Languages}}
<option value="{{.}}">{{.}}</option>
{{end}}
</select>
</div>
<div class="form-row">
<label for="expiry">expires</label>
<select id="expiry" name="expiry">
<option value="never">never</option>
<option value="1h">1 hour</option>
<option value="1d">1 day</option>
<option value="7d">7 days</option>
<option value="30d">30 days</option>
</select>
</div>
<div class="form-row">
<label class="form-check">
<input type="checkbox" name="unlisted">
unlisted (not shown in public index)
</label>
</div>
</div>
<div class="form-row">
<label for="body">paste</label>
<textarea id="body" name="body" class="paste-textarea" placeholder="Paste your code here..." spellcheck="false" autocomplete="off" autocorrect="off" autocapitalize="off" required></textarea>
</div>
<div class="editor-footer">
<button type="submit" class="btn">create paste</button>
</div>
</form>
{{end}}