mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Fix admin config page error, use tests to cover the admin config and 500 error page (#24965)
The admin config page has been broken for many many times, a little refactoring would make this page panic. So, add a test for it, and add another test to cover the 500 error page. Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
@@ -333,16 +333,6 @@
|
||||
|
||||
<div class="ui divider"></div>
|
||||
|
||||
<dt>{{.locale.Tr "admin.config.git_enable_reflogs"}}</dt>
|
||||
<dd>{{if .Git.Reflog.Enabled}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd>
|
||||
|
||||
{{if .Git.Reflog.Enabled}}
|
||||
<dt>{{.locale.Tr "admin.config.git_reflog_expiry_time"}}</dt>
|
||||
<dd>{{.locale.Tr "tool.days" .Git.Reflog.Expiration}}</dd>
|
||||
{{end}}
|
||||
|
||||
<div class="ui divider"></div>
|
||||
|
||||
<dt>{{.locale.Tr "admin.config.git_migrate_timeout"}}</dt>
|
||||
<dd>{{.Git.Timeout.Migrate}} {{.locale.Tr "tool.raw_seconds"}}</dd>
|
||||
<dt>{{.locale.Tr "admin.config.git_mirror_timeout"}}</dt>
|
||||
|
Reference in New Issue
Block a user