DEV: Add category style deprecation check warning (#23951)

The category style site setting is being deprecated. This commit will
show a warning on the admin dashboard if a site isn't using the default
category style (bullet).
This commit is contained in:
Blake Erickson
2023-10-17 10:40:31 -06:00
committed by GitHub
parent c95ffb98ef
commit 60ae69027c
3 changed files with 29 additions and 1 deletions

View File

@@ -207,7 +207,8 @@ class AdminDashboardData
:unreachable_themes,
:watched_words_check,
:google_analytics_version_check,
:translation_overrides_check
:translation_overrides_check,
:deprecated_category_style_check
register_default_scheduled_problem_checks
@@ -447,6 +448,10 @@ class AdminDashboardData
themes_html_format(themes, "dashboard.unreachable_themes")
end
def deprecated_category_style_check
I18n.t("dashboard.category_style_deprecated") if SiteSetting.category_style != "bullet"
end
private
def themes_html_format(themes, i18n_key)