mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 03:08:23 +08:00
FEATURE: Add admin dashboard warning for legacy
navigation menu (#22655)
Why this change? The `legacy` navigation menu option for the `navigation_menu` site setting will be removed shortly after the release of Discourse 3.1 in the first beta release of Discourse 3.2. Therefore, we're adding an admin dashboard warning to give sites on the `legacy` navigation menu a heads up.
This commit is contained in:

committed by
GitHub

parent
b583872eed
commit
3da6759860
@ -207,7 +207,8 @@ class AdminDashboardData
|
||||
:unreachable_themes,
|
||||
:watched_words_check,
|
||||
:google_analytics_version_check,
|
||||
:translation_overrides_check
|
||||
:translation_overrides_check,
|
||||
:legacy_navigation_menu_check
|
||||
|
||||
register_default_scheduled_problem_checks
|
||||
|
||||
@ -367,6 +368,12 @@ class AdminDashboardData
|
||||
end
|
||||
end
|
||||
|
||||
def legacy_navigation_menu_check
|
||||
if SiteSetting.navigation_menu == "legacy"
|
||||
I18n.t("dashboard.legacy_navigation_menu_deprecated", base_path: Discourse.base_path)
|
||||
end
|
||||
end
|
||||
|
||||
def image_magick_check
|
||||
if SiteSetting.create_thumbnails && !system("command -v convert >/dev/null;")
|
||||
I18n.t("dashboard.image_magick_warning")
|
||||
|
Reference in New Issue
Block a user