gitea源码

view_file_tree.tmpl 606B

12345678910111213141516
  1. <div class="flex-text-block repo-button-row">
  2. <button class="ui compact basic icon button"
  3. data-global-click="onRepoViewFileTreeToggle" data-toggle-action="hide"
  4. data-tooltip-content="{{ctx.Locale.Tr "repo.diff.hide_file_tree"}}">
  5. {{svg "octicon-sidebar-expand"}}
  6. </button>
  7. <b>{{ctx.Locale.Tr "files"}}</b>
  8. </div>
  9. {{/* TODO: Dynamically move components such as refSelector and createPR here */}}
  10. <div id="view-file-tree" class="tw-overflow-auto tw-h-full is-loading"
  11. data-repo-link="{{.RepoLink}}"
  12. data-tree-path="{{$.TreePath}}"
  13. data-current-ref-name-sub-url="{{.RefTypeNameSubURL}}"
  14. ></div>