SQLite replaces Postgres, and two fixes from using the thing. - The database is a file under ./storage instead of a second container. Ten members never needed a database server, and the driver is pure Go, so the build stays CGO_ENABLED=0 and the dependency count is unchanged. One bind mount is now the whole backup: no pgdata, no healthcheck-gated depends_on, no startup retry loop. Timestamps are UTC text, idle_ttl is seconds, the divisive/unified boards carry their own stddev, and foreign keys are on by pragma. Tests get a database file each and run without any setup - Invites are copied, not clicked. An invite is something to send, and the anchor opened the join form in the admin's own browser - Feedback asks for more than faults: the footer reads "Ongelmia? Ideoita? Palautetta?" and the page behind it invites ideas rather than only bugs - Kuuntele YouTubessa opens in a new tab, so a half-typed review survives it
31 lines
1.0 KiB
HTML
31 lines
1.0 KiB
HTML
{{define "content"}}
|
|
<h1>Palaute</h1>
|
|
<p class="muted">Ongelmat, ideat ja kaikki muu palaute samaan paikkaan. Ei kategorioita eikä
|
|
prioriteetteja — yksi virke riittää.</p>
|
|
|
|
<form method="post" action="/report" class="stack">
|
|
<input type="hidden" name="from" value="{{.Data.From}}">
|
|
<label>Palaute
|
|
<textarea name="body" rows="6" maxlength="2000" required autofocus
|
|
placeholder="Esim. soittimeen kaipaisi kelausta."></textarea>
|
|
</label>
|
|
<button type="submit">Lähetä palaute</button>
|
|
</form>
|
|
<p class="muted small">Lähetämme mukaan sivun, jolla olit ({{.Data.From}}), sekä selaimen tiedot.</p>
|
|
|
|
{{with .Data.Mine}}
|
|
<section>
|
|
<h2>Omat palautteet</h2>
|
|
{{range .}}
|
|
<article class="review{{if .Open}} own{{end}}">
|
|
<header>
|
|
<span class="badge {{if .Open}}pending{{else}}reviewed{{end}}">{{if .Open}}avoin{{else}}käsitelty{{end}}</span>
|
|
<span class="meta">{{fidate .CreatedAt}}{{if .Page}} · {{.Page}}{{end}}</span>
|
|
</header>
|
|
<p>{{.Body}}</p>
|
|
</article>
|
|
{{end}}
|
|
</section>
|
|
{{end}}
|
|
{{end}}
|