mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 05:53:52 +08:00
S3 deprecation warning
This commit is contained in:
@ -42,7 +42,8 @@ class AdminDashboardData
|
||||
title_check,
|
||||
site_description_check,
|
||||
site_contact_username_check,
|
||||
notification_email_check
|
||||
notification_email_check,
|
||||
s3_deprecation_warning
|
||||
].compact
|
||||
end
|
||||
|
||||
@ -186,4 +187,8 @@ class AdminDashboardData
|
||||
I18n.t('dashboard.ruby_version_warning') if RUBY_VERSION == '2.0.0' and RUBY_PATCHLEVEL < 247
|
||||
end
|
||||
|
||||
def s3_deprecation_warning
|
||||
I18n.t('dashboard.s3_deprecation_warning') if SiteSetting.enable_s3_uploads
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user