mirror of
https://github.com/discourse/discourse.git
synced 2025-03-23 07:40:09 +08:00
FIX: If we're using the crawler layout, don't skip on mobile
This commit is contained in:
parent
7c384fc740
commit
233aa2ab2f
app
@ -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
|
||||
|
@ -1,4 +1,4 @@
|
||||
<%- unless mobile_view? %>
|
||||
<%- if include_crawler_content? %>
|
||||
|
||||
<% if @category %>
|
||||
<h1>
|
||||
|
Loading…
x
Reference in New Issue
Block a user