Files

33 lines
1.1 KiB
Handlebars
Raw Permalink Normal View History

2015-11-14 04:34:01 -05:00
{{template "base/head" .}}
2025-03-15 16:26:49 +08:00
{{$showSidebar := and (not .TreeNames) (not .HideRepoInfo) (not .IsBlame)}}
<div role="main" aria-label="{{.Title}}" class="page-content repository file list {{if .IsBlame}}blame{{end}}">
2015-12-07 23:30:52 +01:00
{{template "repo/header" .}}
2025-03-15 16:26:49 +08:00
<div class="ui container {{if or .TreeNames .IsBlame}}fluid padded{{end}}">
2016-08-24 21:35:03 -07:00
{{template "base/alert" .}}
2024-12-06 23:29:04 +09:00
2019-01-23 19:58:38 +01:00
{{if .Repository.IsArchived}}
2024-03-04 04:33:20 +01:00
<div class="ui warning message tw-text-center">
2023-04-26 16:46:26 +02:00
{{if .Repository.ArchivedUnix.IsZero}}
{{ctx.Locale.Tr "repo.archive.title"}}
2023-04-26 16:46:26 +02:00
{{else}}
{{ctx.Locale.Tr "repo.archive.title_date" (DateUtils.AbsoluteLong .Repository.ArchivedUnix)}}
2023-04-26 16:46:26 +02:00
{{end}}
2019-01-23 19:58:38 +01:00
</div>
{{end}}
{{template "repo/code/recently_pushed_new_branches" dict "RecentBranchesPromptData" .RecentBranchesPromptData}}
2024-12-06 23:29:04 +09:00
<div class="{{Iif $showSidebar "repo-grid-filelist-sidebar" "repo-grid-filelist-only"}}">
<div class="repo-home-filelist">
2025-03-15 16:26:49 +08:00
{{template "repo/view_content" .}}
2016-08-11 05:48:08 -07:00
</div>
2024-12-06 23:29:04 +09:00
{{if $showSidebar}}
2024-12-15 11:01:46 +01:00
{{template "repo/home_sidebar_top" .}}
{{template "repo/home_sidebar_bottom" .}}
2024-12-06 23:29:04 +09:00
{{end}}
2015-12-07 23:30:52 +01:00
</div>
</div>
2014-07-26 00:24:27 -04:00
</div>
2015-12-07 23:30:52 +01:00
{{template "base/footer" .}}