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)}}
|
2023-02-01 19:56:10 -03:00
|
|
|
<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}}
|
2023-09-25 10:56:50 +02:00
|
|
|
{{ctx.Locale.Tr "repo.archive.title"}}
|
2023-04-26 16:46:26 +02:00
|
|
|
{{else}}
|
2024-11-04 19:30:00 +08:00
|
|
|
{{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}}
|
2023-04-19 21:40:42 +08:00
|
|
|
|
2025-07-10 19:17:56 +02:00
|
|
|
{{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" .}}
|