diff --git a/app/views/layouts/application.mobile.haml b/app/views/layouts/application.mobile.haml index 667550dd9..26423f0e3 100644 --- a/app/views/layouts/application.mobile.haml +++ b/app/views/layouts/application.mobile.haml @@ -12,13 +12,30 @@ %meta{:name => "author", :content => "Diaspora, Inc."} %meta{"http-equiv"=>"Content-Type", :content=>"text/html; charset=utf-8"}/ - %meta{:name =>'viewport', :content => "width=device-width, minimum-scale=1, maximum-scale=1"} + / Viewport scale + %meta{:name =>'viewport', :content => "width=device-width, initial-scale=1"} %meta{:name => "HandheldFriendly", :content => "True"} %meta{:name => "MobileOptimized", :content => "320"} + / Force cleartype on WP7 %meta{'http-equiv' => "cleartype", :content => 'on'} + / Home screen icon (sized for retina displays) + %link{:rel => 'apple-touch-icon', :href => '/apple-touch-icon.png'} + / For Nokia devices + %link{:rel => 'shortcut icon', :href => '/apple-touch-icon.png'} + + / iOS mobile web app indicator + /%meta{:name => "apple-mobile-web-app-capable", :content => "yes"} + /%link{:rel => "apple-touch-startup-image", :href => "/images/apple-splash.png"} + + / Stylesheets = include_stylesheets :mobile + %script{:src => "javascripts/vendor/mbp-modernizr-custom.js"} + / Media Queries Polyfill https://github.com/shichuan/mobile-html5-boilerplate/wiki/Media-Queries-Polyfill + :javascript + Modernizr.mq('(min-width:0)') || document.write('