~gitpocket/gitpocket

8
bae926725bd43e86c83216adf292c2eed3c8c6c6
mainfeed-discovery
gitpocket/web/templates/claim.tmpl -rw-r--r--1.1 KiB ViewLogBlameView rawPermalink b0461c8f89 feat(import): import repositories over https and claim matching commit authors yesterday
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
{{define "content"}}
{{$p := .Data.Page}}
<h3>Claim your commits</h3>
{{if .Data.Identities}}
<p>These authors in the history of {{$p.Repo.Path}} look like you. Pick the ones that are yours and their commits will be credited to <b>{{.Data.Name}} &lt;{{.Data.Email}}&gt;</b>.</p>
<form method="post" class="stack wide claim">
{{range .Data.Identities}}<label class="check"><input type="checkbox" name="id" value="{{.Key}}" checked> {{.Name}} <span class="muted">&lt;{{.Email}}&gt;</span>{{if .Commits}} <span class="muted small">{{.Commits}} commit{{if ne .Commits 1}}s{{end}}</span>{{end}}</label>{{end}}
<p class="muted small">This rewrites the history: every affected commit gets a new hash and loses its signature. Anyone who already cloned the repository has to clone it again.</p>
<div class="actions left"><button class="btn primary">Rewrite and claim ▸</button><a class="btn" href="/{{$p.Repo.Path}}">Keep the history as it is</a></div>
</form>
{{else}}<p class="muted">No author in this history matches your username, name or email.</p><p><a class="btn" href="/{{$p.Repo.Path}}">Back to the repository ▸</a></p>{{end}}
{{end}}