0
0
Fork 0

Change settings area to be separated into categories in admin UI (#19407)

And update all descriptions
This commit is contained in:
Eugen Rochko 2022-10-22 11:44:41 +02:00 committed by GitHub
parent abf6c87ee8
commit 7c152acb2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 528 additions and 296 deletions

View file

@ -1,11 +1,4 @@
# frozen_string_literal: true
module Admin::SettingsHelper
def site_upload_delete_hint(hint, var)
upload = SiteUpload.find_by(var: var.to_s)
return hint unless upload
link = link_to t('admin.site_uploads.delete'), admin_site_upload_path(upload), data: { method: :delete }
safe_join([hint, link], '<br/>'.html_safe)
end
end