Fixed Enable and Disable, Sitemap and Terms of Use for header and footer

This commit is contained in:
saurabhbhatia 2013-10-15 10:37:03 +08:00
parent 5fb3731430
commit 96c3be68f7
2 changed files with 3 additions and 3 deletions

View File

@ -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 + "<a href='#{@url}'>Terms of Use</a>")
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 + "<a href='#{@url}'>Sitemap</a>")
else
render :text => @site.sub_menu

View File

@ -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