feat: support disable bots completely

This commit is contained in:
Jason Song
2022-12-01 15:27:28 +08:00
parent ab69fdc6fe
commit b2745bff43
8 changed files with 33 additions and 23 deletions

View File

@@ -33,9 +33,11 @@
{{.locale.Tr "settings.applications"}}
</a>
{{end}}
{{if .EnableBots}}
<a class="{{if .PageIsAdminRunners}}active{{end}} item" href="{{AppSubUrl}}/admin/runners">
{{.locale.Tr "admin.runners"}}
</a>
{{end}}
<a class="{{if .PageIsAdminConfig}}active{{end}} item" href="{{AppSubUrl}}/admin/config">
{{.locale.Tr "admin.config"}}
</a>