FEATURE: Terms of Service v1.0.0

Co-authored-by: Gerhard Schlager <mail@gerhard-schlager.at>
This commit is contained in:
Kyle E. Mitchell
2018-11-21 00:18:30 +01:00
committed by Gerhard Schlager
parent 52a5a5983a
commit 15e793fd3b
7 changed files with 215 additions and 127 deletions

View File

@ -89,10 +89,11 @@ task "topics:update_static", [:locale] => [:environment] do |_, args|
end
update_static_page_topic(locale, "tos_topic_id", "tos_topic.title", "tos_topic.body",
company_domain: SiteSetting.company_domain.presence || "company_domain",
company_full_name: SiteSetting.company_full_name.presence || "company_full_name",
company_name: SiteSetting.company_short_name.presence || "company_short_name",
base_path: Discourse.base_path)
company_name: SiteSetting.company_name.presence || "company_name",
base_url: Discourse.base_url,
contact_email: SiteSetting.contact_email.presence || "contact_email",
governing_law: SiteSetting.governing_law.presence || "governing_law",
city_for_disputes: SiteSetting.city_for_disputes.presence || "city_for_disputes")
update_static_page_topic(locale, "guidelines_topic_id", "guidelines_topic.title", "guidelines_topic.body",
base_path: Discourse.base_path)