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 end
def html_classes 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 end
def escape_unicode(javascript) def escape_unicode(javascript)