|
|
@ -14,13 +14,15 @@
|
|
|
|
{{else}}
|
|
|
|
{{else}}
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<div class="diff-detail-box diff-box sticky df sb ac fw">
|
|
|
|
<div class="diff-detail-box diff-box sticky df sb ac fw">
|
|
|
|
<a class="diff-toggle-file-tree-button">
|
|
|
|
<div class="df ac fw">
|
|
|
|
{{/* the icon meaning is reversed here, "octicon-sidebar-collapse" means show the file tree */}}
|
|
|
|
<a class="diff-toggle-file-tree-button muted df ac">
|
|
|
|
{{svg "octicon-sidebar-collapse" 16 "icon hide"}}
|
|
|
|
{{/* the icon meaning is reversed here, "octicon-sidebar-collapse" means show the file tree */}}
|
|
|
|
{{svg "octicon-sidebar-expand" 16 "icon"}}
|
|
|
|
{{svg "octicon-sidebar-collapse" 20 "icon hide"}}
|
|
|
|
</a>
|
|
|
|
{{svg "octicon-sidebar-expand" 20 "icon"}}
|
|
|
|
<div class="diff-detail-stats df ac">
|
|
|
|
</a>
|
|
|
|
{{svg "octicon-diff" 16 "mr-2"}}{{.locale.Tr "repo.diff.stats_desc" .Diff.NumFiles .Diff.TotalAddition .Diff.TotalDeletion | Str2html}}
|
|
|
|
<div class="diff-detail-stats df ac ml-3">
|
|
|
|
|
|
|
|
{{svg "octicon-diff" 16 "mr-2"}}{{.locale.Tr "repo.diff.stats_desc" .Diff.NumFiles .Diff.TotalAddition .Diff.TotalDeletion | Str2html}}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="diff-detail-actions df ac">
|
|
|
|
<div class="diff-detail-actions df ac">
|
|
|
|
{{if and .PageIsPullFiles $.SignedUserID (not .IsArchived)}}
|
|
|
|
{{if and .PageIsPullFiles $.SignedUserID (not .IsArchived)}}
|
|
|
@ -65,7 +67,7 @@
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
<div id="diff-file-list"></div>
|
|
|
|
<div id="diff-file-list"></div>
|
|
|
|
<div id="diff-container">
|
|
|
|
<div id="diff-container">
|
|
|
|
<div id="diff-file-tree"></div>
|
|
|
|
<div id="diff-file-tree" class="hide"></div>
|
|
|
|
<div id="diff-file-boxes" class="sixteen wide column">
|
|
|
|
<div id="diff-file-boxes" class="sixteen wide column">
|
|
|
|
{{range $i, $file := .Diff.Files}}
|
|
|
|
{{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*/}}
|
|
|
|
{{/*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*/}}
|
|
|
|