Remove unused controllers, apply substitutions to TOS.

This commit is contained in:
Robin Ward 2013-02-13 11:50:27 -05:00
parent def442164f
commit 546016bfd2
4 changed files with 5 additions and 30 deletions

View file

@ -1,9 +0,0 @@
class FaqController < ApplicationController
skip_before_filter :check_xhr
def index
render layout: false
end
end

View file

@ -1,9 +0,0 @@
class PrivacyController < ApplicationController
skip_before_filter :check_xhr
def index
render layout: false
end
end

View file

@ -9,6 +9,11 @@ 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?

View file

@ -1,12 +0,0 @@
class TosController < ApplicationController
skip_before_filter :check_xhr
def index
@company_shortname = 'CDCK'
@company_fullname = 'Civilized Discourse Construction Kit, Inc.'
@company_domain = 'discourse.org'
render
end
end