2022-02-09 20:28:55 +00:00
|
|
|
{{template "base/head" .}}
|
|
|
|
<div class="page-content repository file editor edit">
|
|
|
|
{{template "repo/header" .}}
|
|
|
|
<div class="ui container">
|
|
|
|
{{template "base/alert" .}}
|
|
|
|
<form class="ui edit form" method="post" action="{{.RepoLink}}/_cherrypick/{{.SHA}}/{{.BranchName | PathEscapeSegments}}">
|
|
|
|
{{.CsrfTokenHtml}}
|
|
|
|
<input type="hidden" name="last_commit" value="{{.last_commit}}">
|
|
|
|
<input type="hidden" name="page_has_posted" value="true">
|
|
|
|
<input type="hidden" name="revert" value="{{if eq .CherryPickType "revert"}}true{{else}}false{{end}}">
|
|
|
|
<div class="ui secondary menu">
|
|
|
|
<div class="fitted item treepath">
|
|
|
|
<div class="ui breadcrumb field {{if .Err_TreePath}}error{{end}}">
|
|
|
|
{{$shaurl := printf "%s/commit/%s" $.RepoLink (PathEscape .SHA)}}
|
2022-05-19 22:08:08 +00:00
|
|
|
{{$shalink := printf "<a class=\"ui primary sha label\" href=\"%s\">%s</a>" (Escape $shaurl) (ShortSha .SHA)}}
|
2022-02-09 20:28:55 +00:00
|
|
|
{{if eq .CherryPickType "revert"}}
|
2022-06-27 20:58:46 +00:00
|
|
|
{{.locale.Tr "repo.editor.revert" $shalink | Str2html}}
|
2022-02-09 20:28:55 +00:00
|
|
|
{{else}}
|
2022-06-27 20:58:46 +00:00
|
|
|
{{.locale.Tr "repo.editor.cherry_pick" $shalink | Str2html}}
|
2022-02-09 20:28:55 +00:00
|
|
|
{{end}}
|
|
|
|
<a class="section" href="{{$.RepoLink}}">{{.Repository.FullName}}</a>
|
|
|
|
<div class="divider">:</div>
|
|
|
|
<a class="section" href="{{$.BranchLink}}">{{.BranchName}}</a>
|
2022-06-27 20:58:46 +00:00
|
|
|
<span>{{.locale.Tr "repo.editor.or"}} <a href="{{$shaurl}}">{{.locale.Tr "repo.editor.cancel_lower"}}</a></span>
|
2022-02-09 20:28:55 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{template "repo/editor/commit_form" .}}
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{template "base/footer" .}}
|