2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-12 21:10:47 +08:00

Also put a class on html element for desktop view

This commit is contained in:
Neil Lalonde 2013-09-13 13:58:02 -04:00
parent cca09e1436
commit 8de91e3789

View file

@ -20,7 +20,7 @@ module ApplicationHelper
end

def html_classes
"#{mobile_view? ? 'mobile-view' : ''} #{mobile_device? ? 'mobile-device' : ''}"
"#{mobile_view? ? 'mobile-view' : 'desktop-view'} #{mobile_device? ? 'mobile-device' : 'not-mobile-device'}"
end

def escape_unicode(javascript)