mirror of
https://github.com/go-gitea/gitea
synced 2025-12-06 21:08:25 +00:00
/claim #35898 Resolves #35898 ### Summary of key changes: 1. Add file name search/Go to file functionality to repo button row. 2. Add backend functionality to delete directory 3. Add context menu for directories with functionality to copy path & delete a directory 4. Move Add/Upload file dropdown to right for parity with Github UI 5. Add tree view to the edit/upload UI --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
18 lines
739 B
Handlebars
18 lines
739 B
Handlebars
<div class="repo-view-file-tree-container {{if not .UserSettingCodeViewShowFileTree}}tw-hidden{{end}}">
|
|
<div class="flex-text-block repo-button-row">
|
|
<button class="repo-view-file-tree-toggle ui 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>{{ctx.Locale.Tr "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>
|
|
</div>
|