internal/web/templates/accountdelete.html
cmc web: polish remaining repo sub-views, snippets/queries, and auth/landing pages
28e72be7ab 1 day ago25 lines · 1071 bytes
1{{define "width"}}bounded{{end}}
2{{define "title"}}delete account · {{.Site}}{{end}}
3{{define "content"}}
4<section class="setcard setcard-danger">
5{{if .Scheduled}}
6<h1>Deletion scheduled</h1>
7<p>{{.User}} is disabled and will be deleted at {{when .Scheduled}}.</p>
8<p class="meta">To cancel, <a href="/login">sign in</a> before then, or run any
9command over SSH with a full-scope key.</p>
10{{else if .User}}
11<h1>Delete {{.User}}</h1>
12<p>Confirming disables the account now and deletes it seven days later:
13its repositories, snippets, keys and addresses go, and what it wrote on
14other people's repositories stays under the name <code>ghost</code>.
15Signing in during those seven days cancels.</p>
16<form method="post">
17<p class="btngroup"><button type="submit" class="danger">Delete {{.User}}</button> <a class="button btn" href="/">Cancel</a></p>
18</form>
19{{else}}
20<h1>Link not valid</h1>
21<p class="meta">This deletion link has expired or was already used. Nothing
22has changed. Request a new one from <a href="/settings#delete">settings</a>.</p>
23{{end}}
24</section>
25{{end}}