mirror of
https://github.com/go-gitea/gitea.git
synced 2025-03-27 12:15: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>
33 lines
1.1 KiB
Handlebars
33 lines
1.1 KiB
Handlebars
{{template "base/head" .}}
|
|
{{$showSidebar := and (not .TreeNames) (not .HideRepoInfo) (not .IsBlame)}}
|
|
<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="{{Iif $showSidebar "repo-grid-filelist-sidebar" "repo-grid-filelist-only"}}">
|
|
<div class="repo-home-filelist">
|
|
{{template "repo/view_content" .}}
|
|
</div>
|
|
|
|
{{if $showSidebar}}
|
|
{{template "repo/home_sidebar_top" .}}
|
|
{{template "repo/home_sidebar_bottom" .}}
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{template "base/footer" .}}
|