forked from kevadesu/forgejo
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:
parent
73b57c2992
commit
ca5f302876
6 changed files with 70 additions and 13 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue