def generate_content(page)
page.title = I18n.t("welcome.welcome.title")
page.content = "
#{I18n.t("welcome.welcome.user_permission_info")}
- #{I18n.t("verification.user_permission_debates")}
- #{I18n.t("verification.user_permission_proposal")}
- #{I18n.t("verification.user_permission_support_proposal")}
#{I18n.t("welcome.welcome.user_permission_verify")}
- #{I18n.t("verification.user_permission_votes")}
#{I18n.t("welcome.welcome.user_permission_verify_my_account")}
#{I18n.t("welcome.welcome.go_to_index")}
"
page.save!
end
if SiteCustomization::Page.find_by(slug: "welcome_level_two_verified").nil?
page = SiteCustomization::Page.new(slug: "welcome_level_two_verified", status: "published")
Setting.enabled_locales.each do |locale|
I18n.with_locale(locale) { generate_content(page) }
end
end