mirror of
https://github.com/go-gitea/gitea
synced 2025-08-02 23:58:35 +00:00
Repository level enable package or disable (#19323)
This commit is contained in:
@@ -178,9 +178,11 @@
|
||||
</a>
|
||||
{{end}}
|
||||
|
||||
<a href="{{.RepoLink}}/packages" class="{{ if .IsPackagesPage }}active{{end}} item">
|
||||
{{svg "octicon-package"}} {{.i18n.Tr "packages.title"}}
|
||||
</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">
|
||||
|
Reference in New Issue
Block a user