Add site settings for company name and domain, and use them in the Terms of Service

This commit is contained in:
Neil Lalonde
2013-02-26 15:50:29 -05:00
parent 0f48414a72
commit cd6c1de5b0
4 changed files with 30 additions and 29 deletions

View File

@@ -9,11 +9,6 @@ class StaticController < ApplicationController
# Don't allow paths like ".." or "/" or anything hacky like that
page.gsub!(/[^a-z0-9\_\-]/, '')
# Some variables to substitute
@company_shortname = 'CDCK'
@company_fullname = 'Civilized Discourse Construction Kit, Inc.'
@company_domain = 'discourse.org'
file = "static/#{page}.html"
templates = lookup_context.find_all(file)
if templates.any?