|
|
|
@ -13,6 +13,7 @@
|
|
|
|
|
<a href="{{.Owner.HomeLink}}">{{.Owner.Name}}</a>
|
|
|
|
|
<div class="mx-2">/</div>
|
|
|
|
|
<a href="{{$.RepoLink}}">{{.Name}}</a>
|
|
|
|
|
<a href="{{$.RepoLink}}.rss"><i class="ui grey icon tooltip ml-3" data-content="{{$.i18n.Tr "rss_feed"}}" data-position="top center">{{svg "octicon-rss" 18}}</i></a>
|
|
|
|
|
<div class="labels df ac fw">
|
|
|
|
|
{{if .IsTemplate}}
|
|
|
|
|
{{if .IsPrivate}}
|
|
|
|
@ -36,7 +37,10 @@
|
|
|
|
|
{{end}}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{{if .IsMirror}}<div class="fork-flag">{{$.i18n.Tr "repo.mirror_from"}} <a target="_blank" rel="noopener noreferrer" href="{{if .SanitizedOriginalURL}}{{.SanitizedOriginalURL}}{{else}}{{(MirrorRemoteAddress $.Mirror).Address}}{{end}}">{{if .SanitizedOriginalURL}}{{.SanitizedOriginalURL}}{{else}}{{(MirrorRemoteAddress $.Mirror).Address}}{{end}}</a></div>{{end}}
|
|
|
|
|
{{if $.IsPullMirror}}
|
|
|
|
|
{{$address := MirrorRemoteAddress $.Context . $.Mirror.GetRemoteName}}
|
|
|
|
|
<div class="fork-flag">{{$.i18n.Tr "repo.mirror_from"}} <a target="_blank" rel="noopener noreferrer" href="{{$address.Address}}">{{$address.Address}}</a></div>
|
|
|
|
|
{{end}}
|
|
|
|
|
{{if .IsFork}}<div class="fork-flag">{{$.i18n.Tr "repo.forked_from"}} <a href="{{.BaseRepo.Link}}">{{.BaseRepo.FullName}}</a></div>{{end}}
|
|
|
|
|
{{if .IsGenerated}}<div class="fork-flag">{{$.i18n.Tr "repo.generated_from"}} <a href="{{.TemplateRepo.Link}}">{{.TemplateRepo.FullName}}</a></div>{{end}}
|
|
|
|
|
</div>
|
|
|
|
@ -159,7 +163,7 @@
|
|
|
|
|
<a class="{{if .PageIsIssueList}}active{{end}} item" href="{{.RepoLink}}/issues">
|
|
|
|
|
{{svg "octicon-issue-opened"}} {{.i18n.Tr "repo.issues"}}
|
|
|
|
|
{{if .Repository.NumOpenIssues}}
|
|
|
|
|
<span class="ui blue small label">{{CountFmt .Repository.NumOpenIssues}}</span>
|
|
|
|
|
<span class="ui primary small label">{{CountFmt .Repository.NumOpenIssues}}</span>
|
|
|
|
|
{{end}}
|
|
|
|
|
</a>
|
|
|
|
|
{{end}}
|
|
|
|
@ -174,7 +178,7 @@
|
|
|
|
|
<a class="{{if .PageIsPullList}}active{{end}} item" href="{{.RepoLink}}/pulls">
|
|
|
|
|
{{svg "octicon-git-pull-request"}} {{.i18n.Tr "repo.pulls"}}
|
|
|
|
|
{{if .Repository.NumOpenPulls}}
|
|
|
|
|
<span class="ui blue small label">{{CountFmt .Repository.NumOpenPulls}}</span>
|
|
|
|
|
<span class="ui primary small label">{{CountFmt .Repository.NumOpenPulls}}</span>
|
|
|
|
|
{{end}}
|
|
|
|
|
</a>
|
|
|
|
|
{{end}}
|
|
|
|
@ -184,11 +188,17 @@
|
|
|
|
|
{{svg "octicon-git-pull-request"}} Proposed changes
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
{{if .Permission.CanRead $.UnitTypePackages}}
|
|
|
|
|
<a href="{{.RepoLink}}/packages" class="{{ if .IsPackagesPage }}active{{end}} item">
|
|
|
|
|
{{svg "octicon-package"}} {{.i18n.Tr "packages.title"}}
|
|
|
|
|
</a>
|
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
|
|
{{ if and (not .UnitProjectsGlobalDisabled) (.Permission.CanRead $.UnitTypeProjects)}}
|
|
|
|
|
<a href="{{.RepoLink}}/projects" class="{{ if .IsProjectsPage }}active{{end}} item">
|
|
|
|
|
{{svg "octicon-project"}} {{.i18n.Tr "repo.project_board"}}
|
|
|
|
|
{{if .Repository.NumOpenProjects}}
|
|
|
|
|
<span class="ui blue small label">{{CountFmt .Repository.NumOpenProjects}}</span>
|
|
|
|
|
<span class="ui primary small label">{{CountFmt .Repository.NumOpenProjects}}</span>
|
|
|
|
|
{{end}}
|
|
|
|
|
</a>
|
|
|
|
|
{{ end }}
|
|
|
|
@ -198,7 +208,7 @@
|
|
|
|
|
<a class="{{if .PageIsReleaseList}}active{{end}} item" href="{{.RepoLink}}/releases">
|
|
|
|
|
{{svg "octicon-tag"}} {{.i18n.Tr "repo.releases"}}
|
|
|
|
|
{{if .NumReleases}}
|
|
|
|
|
<span class="ui blue small label">{{CountFmt .NumReleases}}</span>
|
|
|
|
|
<span class="ui primary small label">{{CountFmt .NumReleases}}</span>
|
|
|
|
|
{{end}}
|
|
|
|
|
</a>
|
|
|
|
|
{{end}}
|
|
|
|
|