perf: only generate data-comment-url once (#17618)

This commit is contained in:
Gusted 2021-11-14 05:28:57 +00:00 committed by GitHub
parent 424959e07c
commit 8eddb75508
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

View file

@ -118,7 +118,7 @@
{{end}}
</div>
{{else}}
<table class="chroma">
<table class="chroma" data-new-comment-url="{{$.Issue.HTMLURL}}/files/reviews/new_comment">
{{if $.IsSplitStyle}}
{{template "repo/diff/section_split" dict "file" . "root" $}}
{{else}}