mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-08-06 18:24:39 +08:00

Resolve #29328 This pull request introduces a file tree on the left side when reviewing files of a repository. --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
16 lines
577 B
Handlebars
16 lines
577 B
Handlebars
<div class="flex-text-block tw-mb-2">
|
|
<button class="ui compact tiny icon button"
|
|
data-global-click="onRepoViewFileTreeToggle" data-toggle-action="hide"
|
|
data-tooltip-content="{{ctx.Locale.Tr "repo.diff.hide_file_tree"}}">
|
|
{{svg "octicon-sidebar-expand"}}
|
|
</button>
|
|
<b>Files</b>
|
|
</div>
|
|
|
|
{{/* TODO: Dynamically move components such as refSelector and createPR here */}}
|
|
<div id="view-file-tree" class="tw-overflow-auto tw-h-full is-loading"
|
|
data-repo-link="{{.RepoLink}}"
|
|
data-tree-path="{{$.TreePath}}"
|
|
data-current-ref-name-sub-url="{{.RefTypeNameSubURL}}"
|
|
></div>
|