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

29
templates/paste.html Normal file
View File

@@ -0,0 +1,29 @@
{{define "title"}}{{.Paste.Title}} — paste.ridgwaysystems.org{{end}}
{{define "content"}}
<div class="paste-header">
<div>
<h1 style="margin:0 0 0.4em;">{{.Paste.Title}}</h1>
<div class="paste-meta">
<span><span class="lang-badge">{{.Paste.Language}}</span></span>
<span>created {{formatDateTime .Paste.CreatedAt}}</span>
<span>expires {{expiryStr .Paste}}</span>
{{if .Paste.Unlisted}}<span class="tag">unlisted</span>{{end}}
</div>
</div>
<div class="paste-actions">
<a href="/raw/{{.Paste.ID}}" class="btn btn-outline btn-sm">raw</a>
{{if .IsAdmin}}
<form method="POST" action="/admin/delete/{{.Paste.ID}}" class="inline-form"
onsubmit="return confirm('Delete this paste?')">
<input type="hidden" name="csrf_token" value="{{.CSRFToken}}">
<button type="submit" class="btn btn-danger btn-sm">delete</button>
</form>
{{end}}
</div>
</div>
<div class="paste-code">
{{.Highlighted}}
</div>
{{end}}