Removed unused campaign settings (#6532) [deploy]
This commit is contained in:
parent
d7717e6eff
commit
99cabcbf6b
3 changed files with 1 additions and 22 deletions
|
|
@ -21,8 +21,7 @@ class Internal::ConfigsController < Internal::ApplicationController
|
|||
def config_params
|
||||
allowed_params = %i[
|
||||
default_site_email social_networks_handle mascot_user_id
|
||||
campaign_hero_html_variant_name campaign_background_color
|
||||
campaign_text_color campaign_sidebar_enabled campaign_featured_tags
|
||||
campaign_hero_html_variant_name campaign_sidebar_enabled campaign_featured_tags
|
||||
campaign_sidebar_image
|
||||
main_social_image favicon_url logo_svg
|
||||
rate_limit_follow_count_daily
|
||||
|
|
|
|||
|
|
@ -18,8 +18,6 @@ class SiteConfig < RailsSettings::Base
|
|||
|
||||
# campaign
|
||||
field :campaign_hero_html_variant_name, type: :string, default: ""
|
||||
field :campaign_background_color, type: :string, default: "FFFFFF"
|
||||
field :campaign_text_color, type: :string, default: "000000"
|
||||
field :campaign_featured_tags, type: :array, default: %w[]
|
||||
field :campaign_sidebar_enabled, type: :boolean, default: 0
|
||||
field :campaign_sidebar_image, type: :string, default: nil
|
||||
|
|
|
|||
|
|
@ -72,24 +72,6 @@
|
|||
<div class="alert alert-info">Hero HtmlVariant name</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= f.label :campaign_background_color %>
|
||||
<%= f.text_field :campaign_background_color,
|
||||
class: "form-control",
|
||||
value: SiteConfig.campaign_background_color,
|
||||
placeholder: "FFFFFF" %>
|
||||
<div class="alert alert-info">Campaign background color</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= f.label :campaign_text_color %>
|
||||
<%= f.text_field :campaign_text_color,
|
||||
class: "form-control",
|
||||
value: SiteConfig.campaign_text_color,
|
||||
placeholder: "FFFFFF" %>
|
||||
<div class="alert alert-info">Campaign text color</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= f.label :campaign_sidebar_enabled %>
|
||||
<%= f.check_box :campaign_sidebar_enabled, checked: SiteConfig.campaign_sidebar_enabled %>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue