diff options
author | Kyle D <kdumontnu@gmail.com> | 2021-05-29 08:00:02 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-29 22:00:02 +0800 |
commit | 2a998048efdf57a5ceacc9c6f4d2d6120494d2b7 (patch) | |
tree | c5ac2daa876ae43afd63bb199ae1653ac8267c04 /templates | |
parent | fb6c6895fa10328821d53c0f2d7cb7d6540a2689 (diff) | |
download | gitea-2a998048efdf57a5ceacc9c6f4d2d6120494d2b7.tar.gz gitea-2a998048efdf57a5ceacc9c6f4d2d6120494d2b7.zip |
Remove New PR button in PRs (#15998)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/issue/view.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/issue/view.tmpl b/templates/repo/issue/view.tmpl index bf253291f8..39d3b77017 100644 --- a/templates/repo/issue/view.tmpl +++ b/templates/repo/issue/view.tmpl @@ -6,7 +6,7 @@ <div class="column"> {{template "repo/issue/navbar" .}} </div> - {{if not .Repository.IsArchived}} + {{if and (not .Repository.IsArchived) (not .Issue.IsPull)}} <div class="column right aligned"> {{if .PageIsIssueList}} <a class="ui green button" href="{{.RepoLink}}/issues/new{{if .NewIssueChooseTemplate}}/choose{{end}}">{{.i18n.Tr "repo.issues.new"}}</a> |