Three fixes from using the admin panel and the site: - The invite link was an anchor, but an invite is something to send, not to follow — clicking it opened the join form in the admin's own browser. It is now the URL beside a Kopioi button. The handler reads the text out of the sibling element rather than interpolating the URL into JS, so there is nothing to escape, and where the clipboard API is missing (it needs a secure context, which the documented SSH tunnel to localhost provides) it selects the text instead of leaving a button that does nothing. - "Ilmoita ongelmasta" framed the feedback form as a bug tracker when it is meant to take ideas and general feedback too. The footer now asks "Ongelmia? Ideoita? Palautetta?", and the page it leads to answers all three: the ingress covers ideas explicitly and the placeholder suggests a feature rather than a fault. - "Kuuntele YouTubessa" opens in a new tab. Leaving the page mid-review would lose whatever is already typed into the review form.
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}}
|