diff --git a/templates/repo/release/new.tmpl b/templates/repo/release/new.tmpl index 6f7dc09a6..1b32aa675 100644 --- a/templates/repo/release/new.tmpl +++ b/templates/repo/release/new.tmpl @@ -12,9 +12,9 @@ {{end}} {{template "base/alert" .}} -
+ {{.CsrfTokenHtml}} -
+
{{if .PageIsEditRelease}} {{.tag_name}}@{{.tag_target}} @@ -44,7 +44,7 @@ {{end}}
-
+
@@ -83,9 +83,9 @@
{{end}}
-
-
-
+
+
+
{{if not .PageIsEditRelease}}
@@ -103,30 +103,27 @@
{{.locale.Tr "repo.release.prerelease_helper"}} -
+
+
{{if .PageIsEditRelease}} - + {{.locale.Tr "repo.release.cancel"}} - + {{$.locale.Tr "repo.release.delete_release"}} {{if .IsDraft}} - - + {{else}} - {{end}} {{else}} - {{if not .tag_name}} - - {{end}} - - {{end}} diff --git a/templates/repo/wiki/new.tmpl b/templates/repo/wiki/new.tmpl index 0765cb2c3..cda192454 100644 --- a/templates/repo/wiki/new.tmpl +++ b/templates/repo/wiki/new.tmpl @@ -6,8 +6,8 @@
{{.locale.Tr "repo.wiki.new_page"}} {{if .PageIsWikiEdit}} - @@ -37,6 +37,7 @@
+
{{if eq .Status 1}} -
-
+
+ -
-