oficina / memoria Public

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

Plain git — no account needed to clone.

Download

Download this file

1{{/* §8.10: the asker's own corrections. "Shown" and "picked" are links
2 to the passage, through that page's own access check; this page
3 holds no passage text. */}}
4{{define "content"}}
5<section rst-stack>
6 <h1>Reports</h1>{{if .Partial}}
7 {{template "partial" .}}{{else}}
8 {{if not .Reports}}
9 <p rst-muted>No corrections yet. When the answer at the top of a search is wrong, “Is this wrong?” brings you here.</p>
10 {{else}}
11 <ol rst-report-list>
12 {{range .Reports}}
13 <li rst-report>
14 <p><strong>“{{.Query}}”</strong> <span rst-muted>· {{.Kind}} · <time datetime="{{.Created.UTC.Format "2006-01-02T15:04:05Z07:00"}}">{{.Created.UTC.Format "2 Jan 2006"}}</time></span></p>
15 <p>
16 {{with .Shown}}<a href="{{.Href}}">Shown when you reported</a>{{if .Status}} <span rst-muted>({{.Status}})</span>{{end}}{{else}}<span rst-muted>Nothing was shown</span>{{end}}
17 ·
18 {{if .None}}<span>You said none of these</span>{{else}}{{with .Chosen}}<a href="{{.Href}}">What you picked</a>{{if .Status}} <span rst-muted>({{.Status}})</span>{{end}}{{end}}{{end}}
19 </p>
20 {{if .Note}}<p rst-report-note>{{.Note}}</p>{{end}}
21 <form method="post" action="/reports/{{.ID}}/delete" rst-inline>
22 <button rst-btn="quiet compact" type="submit">Delete</button>
23 </form>
24 </li>
25 {{end}}
26 </ol>
27 {{end}}
28 {{/* §8.11's 👍/👎. No answer text: an AI answer is passage text, and
29 none is kept. The cited passages are links through their own
30 pages' access checks. */}}
31 <h2>AI answers</h2>
32 {{if not .Feedback}}
33 <p rst-muted>No ratings yet. 👍 or 👎 under an AI answer puts it here.</p>
34 {{else}}
35 <ol rst-report-list>
36 {{range .Feedback}}
37 <li rst-report>
38 <p>{{if .Up}}👍{{else}}👎{{end}} <strong>“{{.Query}}”</strong> <span rst-muted>· <time datetime="{{.Created.UTC.Format "2006-01-02T15:04:05Z07:00"}}">{{.Created.UTC.Format "2 Jan 2006"}}</time></span></p>
39 {{with .Cited}}<p rst-muted>It cited: {{range $i, $l := .}}{{if $i}} · {{end}}<a href="{{$l.Href}}">passage {{inc $i}}</a>{{if $l.Status}} ({{$l.Status}}){{end}}{{end}}</p>{{end}}
40 {{if .Note}}<p rst-report-note>{{.Note}}</p>{{end}}
41 <form method="post" action="/answer/feedback/{{.ID}}/delete" rst-inline>
42 <button rst-btn="quiet compact" type="submit">Delete</button>
43 </form>
44 </li>
45 {{end}}
46 </ol>
47 {{end}}{{end}}
48</section>
49{{end}}
50