From dd136858f1ea40ad3c94191d647487fa4f31926c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 18 Oct 2024 20:33:49 +0200 Subject: Adding upstream version 9.0.0. Signed-off-by: Daniel Baumann --- templates/repo/editor/cherry_pick.tmpl | 30 ++++++++++++ templates/repo/editor/commit_form.tmpl | 82 +++++++++++++++++++++++++++++++++ templates/repo/editor/delete.tmpl | 13 ++++++ templates/repo/editor/diff_preview.tmpl | 11 +++++ templates/repo/editor/edit.tmpl | 74 +++++++++++++++++++++++++++++ templates/repo/editor/patch.tmpl | 57 +++++++++++++++++++++++ templates/repo/editor/upload.tmpl | 33 +++++++++++++ 7 files changed, 300 insertions(+) create mode 100644 templates/repo/editor/cherry_pick.tmpl create mode 100644 templates/repo/editor/commit_form.tmpl create mode 100644 templates/repo/editor/delete.tmpl create mode 100644 templates/repo/editor/diff_preview.tmpl create mode 100644 templates/repo/editor/edit.tmpl create mode 100644 templates/repo/editor/patch.tmpl create mode 100644 templates/repo/editor/upload.tmpl (limited to 'templates/repo/editor') 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" .}} +
+ {{template "repo/header" .}} +
+ {{template "base/alert" .}} +
+ {{.CsrfTokenHtml}} + + + +
+ +
+ {{template "repo/editor/commit_form" .}} +
+
+
+{{template "base/footer" .}} diff --git a/templates/repo/editor/commit_form.tmpl b/templates/repo/editor/commit_form.tmpl new file mode 100644 index 0000000..9f81b1d --- /dev/null +++ b/templates/repo/editor/commit_form.tmpl @@ -0,0 +1,82 @@ +
+ {{ctx.AvatarUtils.Avatar .SignedUser 48 "commit-avatar"}} +
+

{{- if .CanCommitToBranch.WillSign}} + {{svg "octicon-lock" 24}} + {{ctx.Locale.Tr "repo.editor.commit_signed_changes"}} + {{- else}} + {{svg "octicon-unlock" 24}} + {{ctx.Locale.Tr "repo.editor.commit_changes"}} + {{- end}}

+
+ +
+
+ +
+
+
+ + +
+
+
+
+
+ + +
+
+ {{if not .Repository.IsEmpty}} +
+
+ {{if .CanCreatePullRequest}} + + {{else}} + + {{end}} + +
+
+
+
+ {{svg "octicon-git-branch"}} + + +
+
+ {{end}} +
+
+ + +
+
+ + {{ctx.Locale.Tr "repo.editor.cancel"}} +
diff --git a/templates/repo/editor/delete.tmpl b/templates/repo/editor/delete.tmpl new file mode 100644 index 0000000..2c0c2fc --- /dev/null +++ b/templates/repo/editor/delete.tmpl @@ -0,0 +1,13 @@ +{{template "base/head" .}} +
+ {{template "repo/header" .}} +
+ {{template "base/alert" .}} +
+ {{.CsrfTokenHtml}} + + {{template "repo/editor/commit_form" .}} +
+
+
+{{template "base/footer" .}} diff --git a/templates/repo/editor/diff_preview.tmpl b/templates/repo/editor/diff_preview.tmpl new file mode 100644 index 0000000..e2e922b --- /dev/null +++ b/templates/repo/editor/diff_preview.tmpl @@ -0,0 +1,11 @@ +
+
+
+ + + {{template "repo/diff/section_unified" dict "file" .File "root" $}} + +
+
+
+
diff --git a/templates/repo/editor/edit.tmpl b/templates/repo/editor/edit.tmpl new file mode 100644 index 0000000..71cecf1 --- /dev/null +++ b/templates/repo/editor/edit.tmpl @@ -0,0 +1,74 @@ +{{template "base/head" .}} +
+ {{template "repo/header" .}} +
+ {{template "base/alert" .}} +
+ {{.CsrfTokenHtml}} + + +
+ +
+ + {{template "repo/editor/commit_form" .}} +
+
+ +
+{{template "base/footer" .}} diff --git a/templates/repo/editor/patch.tmpl b/templates/repo/editor/patch.tmpl new file mode 100644 index 0000000..1f046a8 --- /dev/null +++ b/templates/repo/editor/patch.tmpl @@ -0,0 +1,57 @@ +{{template "base/head" .}} +
+ {{template "repo/header" .}} +
+ {{template "base/alert" .}} +
+ {{.CsrfTokenHtml}} + + +
+ +
+ + {{template "repo/editor/commit_form" .}} +
+
+ + +
+{{template "base/footer" .}} diff --git a/templates/repo/editor/upload.tmpl b/templates/repo/editor/upload.tmpl new file mode 100644 index 0000000..5725020 --- /dev/null +++ b/templates/repo/editor/upload.tmpl @@ -0,0 +1,33 @@ +{{template "base/head" .}} +
+ {{template "repo/header" .}} +
+ {{template "base/alert" .}} +
+ {{.CsrfTokenHtml}} +
+ +
+
+ {{template "repo/upload" .}} +
+ {{template "repo/editor/commit_form" .}} +
+
+
+{{template "base/footer" .}} -- cgit v1.2.3