gitea源码

home.tmpl 1.1KB

123456789101112131415161718192021222324252627282930313233
  1. {{template "base/head" .}}
  2. {{$showSidebar := and (not .TreeNames) (not .HideRepoInfo) (not .IsBlame)}}
  3. <div role="main" aria-label="{{.Title}}" class="page-content repository file list {{if .IsBlame}}blame{{end}}">
  4. {{template "repo/header" .}}
  5. <div class="ui container {{if or .TreeNames .IsBlame}}fluid padded{{end}}">
  6. {{template "base/alert" .}}
  7. {{if .Repository.IsArchived}}
  8. <div class="ui warning message tw-text-center">
  9. {{if .Repository.ArchivedUnix.IsZero}}
  10. {{ctx.Locale.Tr "repo.archive.title"}}
  11. {{else}}
  12. {{ctx.Locale.Tr "repo.archive.title_date" (DateUtils.AbsoluteLong .Repository.ArchivedUnix)}}
  13. {{end}}
  14. </div>
  15. {{end}}
  16. {{template "repo/code/recently_pushed_new_branches" dict "RecentBranchesPromptData" .RecentBranchesPromptData}}
  17. <div class="{{Iif $showSidebar "repo-grid-filelist-sidebar" "repo-grid-filelist-only"}}">
  18. <div class="repo-home-filelist">
  19. {{template "repo/view_content" .}}
  20. </div>
  21. {{if $showSidebar}}
  22. {{template "repo/home_sidebar_top" .}}
  23. {{template "repo/home_sidebar_bottom" .}}
  24. {{end}}
  25. </div>
  26. </div>
  27. </div>
  28. {{template "base/footer" .}}