Initial implementation of mcq — document reading queue
Single-binary service: push raw markdown via REST/gRPC API, read rendered HTML through mobile-friendly web UI. MCIAS auth on all endpoints, SQLite storage, goldmark rendering with GFM and syntax highlighting. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
27
web/templates/read.html
Normal file
27
web/templates/read.html
Normal file
@@ -0,0 +1,27 @@
|
||||
{{define "title"}} — {{.Doc.Title}}{{end}}
|
||||
{{define "content"}}
|
||||
<div class="read-header">
|
||||
<h2>{{.Doc.Title}}</h2>
|
||||
<div class="read-meta">
|
||||
<span>Pushed by {{.Doc.PushedBy}}</span>
|
||||
<span>{{.Doc.PushedAt}}</span>
|
||||
</div>
|
||||
<div class="read-actions">
|
||||
{{if .Doc.Read}}
|
||||
<form method="POST" action="/d/{{.Doc.Slug}}/unread" style="display:inline">
|
||||
{{csrfField}}
|
||||
<button type="submit" class="btn-ghost btn btn-sm">Mark unread</button>
|
||||
</form>
|
||||
{{else}}
|
||||
<form method="POST" action="/d/{{.Doc.Slug}}/read" style="display:inline">
|
||||
{{csrfField}}
|
||||
<button type="submit" class="btn-ghost btn btn-sm">Mark read</button>
|
||||
</form>
|
||||
{{end}}
|
||||
<a href="/" class="btn-ghost btn btn-sm">Back to queue</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card markdown-body">
|
||||
{{.HTML}}
|
||||
</div>
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user