]> source.dussan.org Git - gitea.git/commitdiff
Remove New PR button in PRs (#15998)
authorKyle D <kdumontnu@gmail.com>
Sat, 29 May 2021 14:00:02 +0000 (08:00 -0600)
committerGitHub <noreply@github.com>
Sat, 29 May 2021 14:00:02 +0000 (22:00 +0800)
templates/repo/issue/view.tmpl

index bf253291f8cf15709d5457a2d6079739c9ef87c2..39d3b77017f3f6dbe787a5dfa6777f02f8bc1bc2 100644 (file)
@@ -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>