carlos / platform Public

Clone
git clone https://amadan.net/carlos/platform

Plain git — no account needed to clone.

Download

Download this file

1{{define "pending"}}
2{{if .Pending}}
3<h2>Pending changes</h2>
4<p class="small">Proposed by a member and waiting on the rest — confirm with your passkey, or
5withdraw it. A change nobody acts on expires on its own after 7 days.</p>
6<ul class="feed">
7 {{range .Pending}}
8 <li>
9 <p><span class="chip chip-env">{{.Kind}}</span> {{.Summary}} <span class="small">— {{.Confirmed}}/{{.Needed}} confirmed</span></p>
10 <form method="post" action="{{$.Base}}/apps/{{$.AppName}}/pending/{{.ID}}/confirm" class="inline">
11 <input type="hidden" name="csrf" value="{{$.CSRF}}">
12 <button type="submit" class="btn-sm">Confirm</button>
13 </form>
14 <form method="post" action="{{$.Base}}/apps/{{$.AppName}}/pending/{{.ID}}/reject" class="inline">
15 <input type="hidden" name="csrf" value="{{$.CSRF}}">
16 <button type="submit" class="btn-sm btn-danger">Reject</button>
17 </form>
18 </li>
19 {{end}}
20</ul>
21{{end}}
22{{end}}
23