From 5fb37314303842bc46b6b39eac87d47e765a416d Mon Sep 17 00:00:00 2001 From: saurabhbhatia Date: Tue, 15 Oct 2013 10:07:01 +0800 Subject: [PATCH] Show Custom orbit bar icon only for frontend and desktop --- app/views/admin/sites/preference.html.erb | 2 +- app/views/layouts/_left_menu.html.erb | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/admin/sites/preference.html.erb b/app/views/admin/sites/preference.html.erb index 3a12c1c0..8545b181 100644 --- a/app/views/admin/sites/preference.html.erb +++ b/app/views/admin/sites/preference.html.erb @@ -20,7 +20,7 @@
- + -<% if @site.default_image.present? %> +<% @url_path = "#{request.fullpath}".scan(/admin/)%> +<% if (@site.default_image.present? && (!@url_path.include? "admin"))%>