mirror of https://github.com/go-gitea/gitea.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
896 B
Handlebars
25 lines
896 B
Handlebars
{{$branchDropdownCurrentRefType := "branch"}}
|
|
{{$branchDropdownCurrentRefShortName := .BranchName}}
|
|
{{if .IsViewTag}}
|
|
{{$branchDropdownCurrentRefType = "tag"}}
|
|
{{$branchDropdownCurrentRefShortName = .TagName}}
|
|
{{end}}
|
|
|
|
<div class="view-file-tree-sidebar-top">
|
|
<div class="sidebar-header">
|
|
<button class="hide-tree-sidebar-button ui compact basic button icon" title="{{ctx.Locale.Tr "repo.diff.hide_file_tree"}}">
|
|
{{svg "octicon-sidebar-expand" 20 "icon"}}
|
|
</button>
|
|
<b> Files</b>
|
|
</div>
|
|
<!--// TODO: Dynamically move components such as refSelector and createPR here-->
|
|
</div>
|
|
<div class="view-file-tree-sidebar-bottom">
|
|
<div id="view-file-tree" class="is-loading"
|
|
data-api-base-url="{{.RepoLink}}"
|
|
data-tree-path="{{$.TreePath}}"
|
|
data-current-ref-type="{{$branchDropdownCurrentRefType}}"
|
|
data-current-ref-short-name="{{$branchDropdownCurrentRefShortName}}"
|
|
></div>
|
|
</div>
|