|
|
|
@@ -97,16 +97,21 @@ |
|
|
|
<span>{{svg "octicon-code" 16}} {{.i18n.Tr "repo.code"}} <i class="dropdown icon"></i></span> |
|
|
|
</a> |
|
|
|
<div class="dropdown-content"> |
|
|
|
{{if and (.Permission.CanRead $.UnitTypeReleases) (not .IsEmptyRepo) }} |
|
|
|
<a style="border: none;" class="{{if .PageIsReleaseList}}active{{end}} item" href="{{.RepoLink}}/releases"> |
|
|
|
{{svg "octicon-tag" 16}} {{.i18n.Tr "repo.releases"}} <span class="ui {{if not .NumReleases}}gray{{else}}blue{{end}} small label">{{.NumReleases}}</span> |
|
|
|
</a> |
|
|
|
{{end}} |
|
|
|
{{if or (.Permission.CanRead $.UnitTypeWiki) (.Permission.CanRead $.UnitTypeExternalWiki)}} |
|
|
|
<a style="border: none;" class="{{if .PageIsWiki}}active{{end}} item" href="{{.RepoLink}}/wiki" {{if (.Permission.CanRead $.UnitTypeExternalWiki)}} target="_blank" rel="noopener noreferrer" {{end}}> |
|
|
|
{{svg "octicon-book" 16}} {{.i18n.Tr "repo.wiki"}} |
|
|
|
</a> |
|
|
|
{{end}} |
|
|
|
{{if and (.Permission.CanReadAny $.UnitTypePullRequests $.UnitTypeIssues $.UnitTypeReleases) (not .IsEmptyRepo)}} |
|
|
|
<a style="border: none;" class="{{if .PageIsActivity}}active{{end}} item" href="{{.RepoLink}}/activity"> |
|
|
|
{{svg "octicon-pulse" 16}} {{.i18n.Tr "repo.activity"}} |
|
|
|
</a> |
|
|
|
|
|
|
|
{{end}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|