{{template "repo/header" .}} + {{$compareSeparator := $.CompareInfo.CompareSeparator}} + {{$compareSeparatorSwitch := Iif $.CompareInfo.DirectComparison "..." ".."}}

{{if and $.PageIsComparePull $.IsSigned (not .Repository.IsArchived)}} - {{ctx.Locale.Tr "repo.pulls.compare_changes"}} -
{{ctx.Locale.Tr "repo.pulls.compare_changes_desc"}}
+ {{ctx.Locale.Tr "repo.compare.title"}} +
{{ctx.Locale.Tr "repo.compare.description"}}
{{else}} {{ctx.Locale.Tr "action.compare_commits_general"}} {{end}} @@ -29,7 +31,7 @@ {{- end -}}
- {{svg "octicon-git-compare"}} + {{svg "octicon-git-compare"}}
- {{svg "octicon-arrow-left" 16}}
{{.CompareSeparator}}
+ {{svg "octicon-arrow-left" 16}}
{{$compareSeparator}}

{{template "base/alert" .}} - {{.CsrfTokenHtml}}
diff --git a/templates/repo/issue/new_form.tmpl b/templates/repo/issue/new_form.tmpl index b63cbcfc0d..e4c8008c19 100644 --- a/templates/repo/issue/new_form.tmpl +++ b/templates/repo/issue/new_form.tmpl @@ -1,6 +1,5 @@ {{template "base/alert" .}} - {{.CsrfTokenHtml}}
diff --git a/templates/repo/issue/sidebar/due_date.tmpl b/templates/repo/issue/sidebar/due_date.tmpl index e6e19f6f86..4209304115 100644 --- a/templates/repo/issue/sidebar/due_date.tmpl +++ b/templates/repo/issue/sidebar/due_date.tmpl @@ -21,7 +21,6 @@ - {{$.CsrfTokenHtml}} diff --git a/templates/repo/issue/sidebar/issue_dependencies.tmpl b/templates/repo/issue/sidebar/issue_dependencies.tmpl index bbae011958..14d7bb8c65 100644 --- a/templates/repo/issue/sidebar/issue_dependencies.tmpl +++ b/templates/repo/issue/sidebar/issue_dependencies.tmpl @@ -110,7 +110,6 @@ {{if and .CanCreateIssueDependencies (not .Repository.IsArchived)}}
- {{$.CsrfTokenHtml}}
diff --git a/templates/repo/issue/sidebar/reviewer_list.tmpl b/templates/repo/issue/sidebar/reviewer_list.tmpl index 2b5ca80fe7..e1fd88b79a 100644 --- a/templates/repo/issue/sidebar/reviewer_list.tmpl +++ b/templates/repo/issue/sidebar/reviewer_list.tmpl @@ -115,7 +115,6 @@ {{ctx.Locale.Tr "repo.issues.dismiss_review_warning"}}
- {{ctx.RootData.CsrfTokenHtml}}
diff --git a/templates/repo/issue/sidebar/stopwatch_timetracker.tmpl b/templates/repo/issue/sidebar/stopwatch_timetracker.tmpl index 6168b06e17..b23024e62b 100644 --- a/templates/repo/issue/sidebar/stopwatch_timetracker.tmpl +++ b/templates/repo/issue/sidebar/stopwatch_timetracker.tmpl @@ -39,7 +39,6 @@
{{ctx.Locale.Tr "repo.issues.time_estimate_set"}}
- {{$.CsrfTokenHtml}}
@@ -54,7 +53,6 @@
{{ctx.Locale.Tr "repo.issues.add_time_manually"}}
- {{$.CsrfTokenHtml}} :
diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl index 56dea5cd4b..b7fec4a07d 100644 --- a/templates/repo/issue/view_content.tmpl +++ b/templates/repo/issue/view_content.tmpl @@ -81,7 +81,6 @@
{{template "repo/issue/comment_tab" .}} - {{.CsrfTokenHtml}}