{{template "base/alert" .}}
{{template "repo/sub_menu" .}}
{{if .DefaultBranchBranch}}
{{end}}
{{if gt (len .Branches) 1}}
{{range .Branches}}
{{if ne .Name $.DefaultBranch}}
{{template "base/paginate" .}}
{{end}}
{{.locale.Tr "repo.default_branch"}} {{if and $.IsWriter (not $.Repository.IsArchived) (not .IsDeleted)}} {{svg "octicon-arrow-switch"}} {{end}}
{{if .DefaultBranchBranch.IsProtected}}
{{svg "octicon-shield-lock"}}
{{end}}
{{.DefaultBranch}}
{{svg "octicon-git-commit" 16 "gt-mr-2"}}{{ShortSha .DefaultBranchBranch.Commit.ID.String}} · · {{.locale.Tr "org.repo_updated"}} {{TimeSince .DefaultBranchBranch.Commit.Committer.When .locale}} |
{{if and $.IsWriter (not $.Repository.IsArchived) (not .IsDeleted)}}
{{end}}
{{if .EnableFeed}}
{{svg "octicon-rss"}}
{{end}}
{{if not $.DisableDownloadSourceArchives}}
{{svg "octicon-download"}}
{{end}}
{{if and $.IsWriter (not $.Repository.IsArchived) (not .IsDeleted) (not $.IsMirror)}}
{{end}}
|
{{.locale.Tr "repo.branches"}}
{{if .IsDeleted}}
{{$.locale.Tr "repo.branch.deleted_by" .DeletedBranch.DeletedBy.Name}} {{TimeSinceUnix .DeletedBranch.DeletedUnix $.locale}} {{else}} {{if .IsProtected}} {{svg "octicon-shield-lock"}} {{end}} {{.Name}}{{svg "octicon-git-commit" 16 "gt-mr-2"}}{{ShortSha .Commit.ID.String}} · · {{$.locale.Tr "org.repo_updated"}} {{TimeSince .Commit.Committer.When $.locale}} {{end}} |
{{if and (not .IsDeleted) $.DefaultBranchBranch}}
|
{{if not .LatestPullRequest}} {{if .IsIncluded}} {{svg "octicon-git-pull-request"}} {{$.locale.Tr "repo.branch.included"}} {{else if and (not .IsDeleted) $.AllowsPulls (gt .CommitsAhead 0)}} {{end}} {{else if and .LatestPullRequest.HasMerged .MergeMovedOn}} {{if and (not .IsDeleted) $.AllowsPulls (gt .CommitsAhead 0)}} {{end}} {{else}} {{if not .LatestPullRequest.IsSameRepo}}{{.LatestPullRequest.BaseRepo.FullName}}{{end}}#{{.LatestPullRequest.Issue.Index}} {{if .LatestPullRequest.HasMerged}} {{svg "octicon-git-merge" 16 "gt-mr-2"}}{{$.locale.Tr "repo.pulls.merged"}} {{else if .LatestPullRequest.Issue.IsClosed}} {{svg "octicon-git-pull-request" 16 "gt-mr-2"}}{{$.locale.Tr "repo.issues.closed_title"}} {{else}} {{svg "octicon-git-pull-request" 16 "gt-mr-2"}}{{$.locale.Tr "repo.issues.open_title"}} {{end}} {{end}} |
{{if and $.IsWriter (not $.Repository.IsArchived) (not .IsDeleted)}}
{{end}}
{{if $.EnableFeed}}
{{svg "octicon-rss"}}
{{end}}
{{if and (not .IsDeleted) (not $.DisableDownloadSourceArchives)}}
{{svg "octicon-download"}}
{{end}}
{{if and $.IsWriter (not $.Repository.IsArchived) (not .IsDeleted) (not $.IsMirror)}}
{{end}}
{{if and $.IsWriter (not $.IsMirror) (not $.Repository.IsArchived) (not .IsProtected)}}
{{if .IsDeleted}}
{{else}}
{{end}}
{{end}}
|