diaspora/app/controllers/terms_controller.rb
Jason Robinson e58f0b2ad4 Terms of service and privacy policy feature.
If enabled, terms of service link will be shown in sign up page.
2014-08-17 17:44:44 +03:00

20 lines
504 B
Ruby

# Copyright (c) 2010-2011, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file.
class TermsController < ApplicationController
respond_to :html, :mobile
def index
@css_framework = :bootstrap
partial_dir = Rails.root.join('app', 'views', 'terms')
if partial_dir.join('terms.haml').exist? ||
partial_dir.join('terms.erb').exist?
render :terms
else
render :default
end
end
end