FIX: If we're using the crawler layout, don't skip on mobile

This commit is contained in:
Robin Ward 2016-03-16 14:35:58 -04:00
parent 7c384fc740
commit 233aa2ab2f
2 changed files with 5 additions and 1 deletions

View File

@ -169,6 +169,10 @@ module ApplicationHelper
MobileDetection.resolve_mobile_view!(request.user_agent,params,session)
end
def include_crawler_content?
controller.try(:use_crawler_layout?) || !mobile_view?
end
def mobile_device?
MobileDetection.mobile_device?(request.user_agent)
end

View File

@ -1,4 +1,4 @@
<%- unless mobile_view? %>
<%- if include_crawler_content? %>
<% if @category %>
<h1>