aboutsummaryrefslogtreecommitdiffstats
path: root/templates/admin
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2024-04-07 09:11:25 +0800
committerGitHub <noreply@github.com>2024-04-07 01:11:25 +0000
commitbbe5cd7c92ccc3793473ae0163398cdbccdd4246 (patch)
tree1f0b092450ff2b5f86320f79387fe44916b530c9 /templates/admin
parent48223909be0511bcd773bceea76918bfd7cc7d46 (diff)
downloadgitea-bbe5cd7c92ccc3793473ae0163398cdbccdd4246.tar.gz
gitea-bbe5cd7c92ccc3793473ae0163398cdbccdd4246.zip
Refactor startup deprecation messages (#30305)
It doesn't change logic, it only does: 1. Rename the variable and function names 2. Use more consistent format when mentioning config section&key 3. Improve some messages
Diffstat (limited to 'templates/admin')
-rw-r--r--templates/admin/self_check.tmpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/admin/self_check.tmpl b/templates/admin/self_check.tmpl
index c100ffd504..a6c2ac1ac9 100644
--- a/templates/admin/self_check.tmpl
+++ b/templates/admin/self_check.tmpl
@@ -5,11 +5,11 @@
{{ctx.Locale.Tr "admin.self_check"}}
</h4>
- {{if .DeprecatedWarnings}}
+ {{if .StartupProblems}}
<div class="ui attached segment">
<div class="ui warning message">
<div>{{ctx.Locale.Tr "admin.self_check.startup_warnings"}}</div>
- <ul class="tw-w-full">{{range .DeprecatedWarnings}}<li>{{.}}</li>{{end}}</ul>
+ <ul class="tw-w-full">{{range .StartupProblems}}<li>{{.}}</li>{{end}}</ul>
</div>
</div>
{{end}}
@@ -40,7 +40,7 @@
</div>
{{end}}
- {{if and (not .DeprecatedWarnings) (not .DatabaseCheckHasProblems)}}
+ {{if and (not .StartupProblems) (not .DatabaseCheckHasProblems)}}
<div class="ui attached segment">
{{ctx.Locale.Tr "admin.self_check.no_problem_found"}}
</div>