-
-
-
- {{range $i, $file := .Diff.Files}}
- {{/*notice: the index of Diff.Files should not be used for element ID, because the index will be restarted from 0 when doing load-more for PRs with a lot of files*/}}
- {{$blobBase := call $.GetBlobByPathForCommit $.BeforeCommit $file.OldName}}
- {{$blobHead := call $.GetBlobByPathForCommit $.HeadCommit $file.Name}}
- {{$isImage := or (call $.IsBlobAnImage $blobBase) (call $.IsBlobAnImage $blobHead)}}
- {{$isCsv := (call $.IsCsvFile $file)}}
- {{$showFileViewToggle := or $isImage (and (not $file.IsIncomplete) $isCsv)}}
- {{$isExpandable := or (gt $file.Addition 0) (gt $file.Deletion 0) $file.IsBin}}
- {{$isReviewFile := and $.IsSigned $.PageIsPullFiles (not $.IsArchived)}}
-
-
-{{end}}
+ {{end}}
+
diff --git a/templates/repo/pulls/tab_menu.tmpl b/templates/repo/pulls/tab_menu.tmpl
index 6c121bdd1f6b8..c91d09d9e1ab6 100644
--- a/templates/repo/pulls/tab_menu.tmpl
+++ b/templates/repo/pulls/tab_menu.tmpl
@@ -9,7 +9,7 @@
{{$.locale.Tr "repo.pulls.tab_commits"}}
{{if .NumCommits}}{{.NumCommits}}{{else}}-{{end}}
-
+
{{svg "octicon-diff"}}
{{$.locale.Tr "repo.pulls.tab_files"}}
{{if .NumFiles}}{{.NumFiles}}{{else}}-{{end}}
+ {{$.locale.Tr "repo.diff.too_many_files"}} + {{.locale.Tr "repo.diff.show_more"}} +