From 96c3be68f73b96064c9c0abc78fb7da0252d70cc Mon Sep 17 00:00:00 2001 From: saurabhbhatia Date: Tue, 15 Oct 2013 10:37:03 +0800 Subject: [PATCH] Fixed Enable and Disable, Sitemap and Terms of Use for header and footer --- app/controllers/front_controller.rb | 4 ++-- app/models/site.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/front_controller.rb b/app/controllers/front_controller.rb index fa866b87..b3c26516 100644 --- a/app/controllers/front_controller.rb +++ b/app/controllers/front_controller.rb @@ -16,7 +16,7 @@ class FrontController < ApplicationController @name = @page.first.name @url = "/#{@name}" - if @site.enable_terms_of_use + if !@site.enable_terms_of_use render :text => (@site.footer + "Terms of Use") else render :text => @site.footer @@ -34,7 +34,7 @@ class FrontController < ApplicationController @name = @page.first.name @url = "/#{@name}" - if @site.sitemap_menu_in_header + if !@site.sitemap_menu_in_header render :text => (@site.sub_menu + "Sitemap") else render :text => @site.sub_menu diff --git a/app/models/site.rb b/app/models/site.rb index 68fe40a4..d12eca33 100644 --- a/app/models/site.rb +++ b/app/models/site.rb @@ -16,7 +16,7 @@ class Site field :backend_openness_on, :type => Boolean, :default => false field :desktop_closed, :type => Boolean, :default => false field :sitemap_menu_in_header, :type => Boolean, :default => false - field :enable_terms_of_use, :type => Boolean, :default => true + field :enable_terms_of_use, :type => Boolean, :default => false field :title_always_on, :type => Boolean, :default => false field :dashbroad_allow_visitor, :type => Boolean, :default => false