From 6e032a875797a96d3f4bc2a01765046d620817f3 Mon Sep 17 00:00:00 2001 From: saurabhbhatia Date: Mon, 2 Sep 2013 17:31:34 +0800 Subject: [PATCH] Add Preference and search engine --- app/controllers/admin/sites_controller.rb | 4 + app/models/site.rb | 1 + app/views/admin/sites/_side_bar.html.erb | 14 +- app/views/admin/sites/preference.html.erb | 5 + app/views/admin/sites/search_engine.html.erb | 158 ++++++++----------- config/routes.rb | 1 + 6 files changed, 81 insertions(+), 102 deletions(-) create mode 100644 app/views/admin/sites/preference.html.erb diff --git a/app/controllers/admin/sites_controller.rb b/app/controllers/admin/sites_controller.rb index 651d8bb3d..f9ce30816 100644 --- a/app/controllers/admin/sites_controller.rb +++ b/app/controllers/admin/sites_controller.rb @@ -59,6 +59,10 @@ class Admin::SitesController < OrbitBackendController end + def preference + + end + def ui_theme diff --git a/app/models/site.rb b/app/models/site.rb index 9758c187d..7967c5394 100644 --- a/app/models/site.rb +++ b/app/models/site.rb @@ -33,6 +33,7 @@ class Site field :footer, localize: true field :sub_menu, localize: true field :terms_of_user, localize: true + field :google_analytics field :mobile_on, :type => Boolean, :default => false diff --git a/app/views/admin/sites/_side_bar.html.erb b/app/views/admin/sites/_side_bar.html.erb index bc12e7245..a1364789c 100644 --- a/app/views/admin/sites/_side_bar.html.erb +++ b/app/views/admin/sites/_side_bar.html.erb @@ -1,14 +1,3 @@ - -