summaryrefslogtreecommitdiffstats
path: root/templates/repo/editor/cherry_pick.tmpl
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2024-10-18 20:33:49 +0200
committerDaniel Baumann <daniel@debian.org>2024-10-18 20:33:49 +0200
commitdd136858f1ea40ad3c94191d647487fa4f31926c (patch)
tree58fec94a7b2a12510c9664b21793f1ed560c6518 /templates/repo/editor/cherry_pick.tmpl
parentInitial commit. (diff)
downloadforgejo-dd136858f1ea40ad3c94191d647487fa4f31926c.tar.xz
forgejo-dd136858f1ea40ad3c94191d647487fa4f31926c.zip
Adding upstream version 9.0.0.HEADupstream/9.0.0upstreamdebian
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to '')
-rw-r--r--templates/repo/editor/cherry_pick.tmpl30
1 files changed, 30 insertions, 0 deletions
diff --git a/templates/repo/editor/cherry_pick.tmpl b/templates/repo/editor/cherry_pick.tmpl
new file mode 100644
index 0000000..f9c9eef
--- /dev/null
+++ b/templates/repo/editor/cherry_pick.tmpl
@@ -0,0 +1,30 @@
+{{template "base/head" .}}
+<div role="main" aria-label="{{.Title}}" 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="repo-editor-header">
+ <div class="ui breadcrumb field {{if .Err_TreePath}}error{{end}}">
+ {{$shaurl := printf "%s/commit/%s" $.RepoLink (PathEscape .SHA)}}
+ {{$shalink := HTMLFormat `<a class="ui primary sha label" href="%s">%s</a>` $shaurl (ShortSha .SHA)}}
+ {{if eq .CherryPickType "revert"}}
+ {{ctx.Locale.Tr "repo.editor.revert" $shalink}}
+ {{else}}
+ {{ctx.Locale.Tr "repo.editor.cherry_pick" $shalink}}
+ {{end}}
+ <a class="section" href="{{$.RepoLink}}">{{.Repository.FullName}}</a>
+ <div class="breadcrumb-divider">:</div>
+ <a class="section" href="{{$.BranchLink}}">{{.BranchName}}</a>
+ <span>{{ctx.Locale.Tr "repo.editor.or"}} <a href="{{$shaurl}}">{{ctx.Locale.Tr "repo.editor.cancel_lower"}}</a></span>
+ </div>
+ </div>
+ {{template "repo/editor/commit_form" .}}
+ </form>
+ </div>
+</div>
+{{template "base/footer" .}}