Move HTML settings to content blocks settings page

- Rename html settings keys
- Show html settings next to content blocks page
- Hide html settings from configuration tab
This commit is contained in:
Julian Herrero
2019-03-13 12:49:50 +01:00
parent 89d4ea5aa3
commit 4df9a1a1b4
8 changed files with 23 additions and 14 deletions

View File

@@ -9,6 +9,8 @@ class Admin::SiteCustomization::ContentBlocksController < Admin::SiteCustomizati
def index
@content_blocks = SiteCustomization::ContentBlock.order(:name, :locale)
@headings_content_blocks = Budget::ContentBlock.all
all_settings = Setting.all.group_by { |setting| setting.type }
@html_settings = all_settings["html"]
end
def create