discourse/lib/configurable_urls.rb

20 lines
434 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module ConfigurableUrls
2013-06-27 11:10:43 -05:00
def faq_path
SiteSetting.faq_url.blank? ? "#{Discourse.base_path}/faq" : SiteSetting.faq_url
2013-06-27 11:10:43 -05:00
end
def tos_path
SiteSetting.tos_url.blank? ? "#{Discourse.base_path}/tos" : SiteSetting.tos_url
end
def privacy_path
if SiteSetting.privacy_policy_url.blank?
"#{Discourse.base_path}/privacy"
else
SiteSetting.privacy_policy_url
end
end
end