2022-02-09 13:28:55 -07:00
|
|
|
{{template "base/head" .}}
|
2023-02-01 15:56:10 -07:00
|
|
|
<div role="main" aria-label="{{.Title}}" class="page-content repository file editor edit">
|
2022-02-09 13:28:55 -07:00
|
|
|
{{template "repo/header" .}}
|
|
|
|
<div class="ui container">
|
|
|
|
{{template "base/alert" .}}
|
2023-06-14 12:17:58 -06:00
|
|
|
<form class="ui edit form" method="post" action="{{.RepoLink}}/_cherrypick/{{.SHA}}/{{.BranchName | PathEscapeSegments}}">
|
2022-02-09 13:28:55 -07:00
|
|
|
{{.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}}">
|
2023-05-01 09:40:02 -06:00
|
|
|
<div class="repo-editor-header">
|
|
|
|
<div class="ui breadcrumb field {{if .Err_TreePath}}error{{end}}">
|
|
|
|
{{$shaurl := printf "%s/commit/%s" $.RepoLink (PathEscape .SHA)}}
|
2023-06-14 12:17:58 -06:00
|
|
|
{{$shalink := printf `<a class="ui primary sha label" href="%s">%s</a>` (Escape $shaurl) (ShortSha .SHA)}}
|
2023-05-01 09:40:02 -06:00
|
|
|
{{if eq .CherryPickType "revert"}}
|
2024-02-14 14:48:45 -07:00
|
|
|
{{ctx.Locale.Tr "repo.editor.revert" ($shalink|Safe)}}
|
2023-05-01 09:40:02 -06:00
|
|
|
{{else}}
|
2024-02-14 14:48:45 -07:00
|
|
|
{{ctx.Locale.Tr "repo.editor.cherry_pick" ($shalink|Safe)}}
|
2023-05-01 09:40:02 -06:00
|
|
|
{{end}}
|
|
|
|
<a class="section" href="{{$.RepoLink}}">{{.Repository.FullName}}</a>
|
2023-08-15 18:08:23 -06:00
|
|
|
<div class="breadcrumb-divider">:</div>
|
2023-05-01 09:40:02 -06:00
|
|
|
<a class="section" href="{{$.BranchLink}}">{{.BranchName}}</a>
|
2023-09-25 06:42:40 -06:00
|
|
|
<span>{{ctx.Locale.Tr "repo.editor.or"}} <a href="{{$shaurl}}">{{ctx.Locale.Tr "repo.editor.cancel_lower"}}</a></span>
|
2022-02-09 13:28:55 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{template "repo/editor/commit_form" .}}
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{template "base/footer" .}}
|