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}} <{{.Data.Email}}></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"><{{.Email}}></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}}
|