mirror of
https://github.com/go-gitea/gitea.git
synced 2025-04-18 21:10:48 +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>
30 lines
1.0 KiB
Handlebars
30 lines
1.0 KiB
Handlebars
{{template "base/head" .}}
|
|
<div role="main" aria-label="{{.Title}}" class="page-content repository file list {{if .IsBlame}}blame{{end}}">
|
|
{{template "repo/header" .}}
|
|
<div class="ui container {{if or .TreeNames .IsBlame}}fluid padded{{end}}">
|
|
{{template "base/alert" .}}
|
|
|
|
{{if .Repository.IsArchived}}
|
|
<div class="ui warning message tw-text-center">
|
|
{{if .Repository.ArchivedUnix.IsZero}}
|
|
{{ctx.Locale.Tr "repo.archive.title"}}
|
|
{{else}}
|
|
{{ctx.Locale.Tr "repo.archive.title_date" (DateUtils.AbsoluteLong .Repository.ArchivedUnix)}}
|
|
{{end}}
|
|
</div>
|
|
{{end}}
|
|
|
|
{{template "repo/code/recently_pushed_new_branches" .}}
|
|
|
|
<div class="repo-view-container">
|
|
<div class="repo-view-file-tree-container not-mobile {{if not .UserSettingCodeViewShowFileTree}}tw-hidden{{end}}" {{if .IsSigned}}data-user-is-signed-in{{end}}>
|
|
{{template "repo/view_file_tree" .}}
|
|
</div>
|
|
<div class="repo-view-content">
|
|
{{template "repo/view_content" .}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{template "base/footer" .}}
|