fix lint-error

This commit is contained in:
Kerwin Bryant 2024-12-09 06:36:15 +00:00
parent 3be6a1dc15
commit 5cf8d37eb1
2 changed files with 6 additions and 6 deletions

View File

@ -1,9 +1,9 @@
<div id="diff-file-tree" class="file-tree tw-hidden not-mobile">
<div class="file-tree-items">
{{range .Files}}
{{template "repo/diff/file_tree_item" .}}
{{template "repo/diff/file_tree_item" .}}
{{end}}
</div>
</div>
{{if .IsIncomplete}}
<div class="tw-pt-1">
<a class="ui basic tiny button diff-show-more-files" data-href="{{ .LoadMoreLink }}">{{ctx.Locale.Tr "repo.diff.show_more"}}</a>

View File

@ -17,16 +17,16 @@
</a>
{{else}}
<div class="item-directory" title="{{ .Name }}">
<!-- directory -->
<!-- directory -->
{{svg "octicon-chevron-down"}}
{{svg "octicon-file-directory-open-fill" 16 "text primary"}}
<span class="gt-ellipsis">{{ .Name }}</span>
</div>
<span class="gt-ellipsis">{{ .Name }}</span>
</div>
{{end}}
{{if and .Children (gt (len .Children) 0)}}
<div class="sub-items">
{{range .Children}}
{{template "repo/diff/file_tree_item" .}}
{{template "repo/diff/file_tree_item" .}}
{{end}}
</div>
{{end}}