mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-17 12:11:16 -05:00
Remove unused controllers, apply substitutions to TOS.
This commit is contained in:
parent
def442164f
commit
546016bfd2
4 changed files with 5 additions and 30 deletions
|
@ -1,9 +0,0 @@
|
||||||
class FaqController < ApplicationController
|
|
||||||
|
|
||||||
skip_before_filter :check_xhr
|
|
||||||
|
|
||||||
def index
|
|
||||||
render layout: false
|
|
||||||
end
|
|
||||||
|
|
||||||
end
|
|
|
@ -1,9 +0,0 @@
|
||||||
class PrivacyController < ApplicationController
|
|
||||||
|
|
||||||
skip_before_filter :check_xhr
|
|
||||||
|
|
||||||
def index
|
|
||||||
render layout: false
|
|
||||||
end
|
|
||||||
|
|
||||||
end
|
|
|
@ -9,6 +9,11 @@ class StaticController < ApplicationController
|
||||||
# Don't allow paths like ".." or "/" or anything hacky like that
|
# Don't allow paths like ".." or "/" or anything hacky like that
|
||||||
page.gsub!(/[^a-z0-9\_\-]/, '')
|
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"
|
file = "static/#{page}.html"
|
||||||
templates = lookup_context.find_all(file)
|
templates = lookup_context.find_all(file)
|
||||||
if templates.any?
|
if templates.any?
|
||||||
|
|
|
@ -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
|
|
Loading…
Reference in a new issue