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.
42 lines
1.5 KiB
Handlebars
42 lines
1.5 KiB
Handlebars
{{template "base/head" .}}
|
|
{{$treeNamesLen := len .TreeNames}}
|
|
{{$isTreePathRoot := eq $treeNamesLen 0}}
|
|
{{$showSidebar := and $isTreePathRoot (not .HideRepoInfo) (not .IsBlame)}}
|
|
{{$hasTreeSidebar := not $isTreePathRoot}}
|
|
{{$showTreeSidebar := .RepoPreferences.ShowFileViewTreeSidebar}}
|
|
{{$hideTreeSidebar := not $showTreeSidebar}}
|
|
<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 $hasTreeSidebar .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" (Iif $showTreeSidebar "repo-grid-tree-sidebar" "repo-grid-filelist-only")}}">
|
|
{{if $hasTreeSidebar}}
|
|
<div class="repo-view-file-tree-sidebar not-mobile {{if $hideTreeSidebar}}tw-hidden{{end}}">{{template "repo/view_file_tree_sidebar" .}}</div>
|
|
{{end}}
|
|
|
|
<div class="repo-home-filelist">
|
|
{{template "repo/home_content" .}}
|
|
</div>
|
|
|
|
{{if $showSidebar}}
|
|
{{template "repo/home_sidebar_top" .}}
|
|
{{template "repo/home_sidebar_bottom" .}}
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{template "base/footer" .}}
|