diff options
author | kushalpandya <kushal@gitlab.com> | 2017-08-24 19:01:56 +0300 |
---|---|---|
committer | kushalpandya <kushal@gitlab.com> | 2017-08-24 19:01:56 +0300 |
commit | 9f6b6f39f9ebfe51095425cdb765bb0d1392f9eb (patch) | |
tree | 4edeca75cec62113888f943e4c4b366d83d3409c | |
parent | c5debce7756fc41bd06280794229408cce56fb0c (diff) |
Update mobile webapp config for Android and iOS
-rw-r--r-- | app/views/layouts/_head.html.haml | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/app/views/layouts/_head.html.haml b/app/views/layouts/_head.html.haml index fd978dc79d4..085e3b856b6 100644 --- a/app/views/layouts/_head.html.haml +++ b/app/views/layouts/_head.html.haml @@ -60,15 +60,22 @@ - unless browser.safari? %meta{ name: 'referrer', content: 'origin-when-cross-origin' } %meta{ name: 'viewport', content: 'width=device-width, initial-scale=1, maximum-scale=1' } - %meta{ name: 'theme-color', content: '#474D57' } - -# Apple Safari/iOS home screen icons - = favicon_link_tag 'touch-icon-iphone.png', rel: 'apple-touch-icon' - = favicon_link_tag 'touch-icon-ipad.png', rel: 'apple-touch-icon', sizes: '76x76' - = favicon_link_tag 'touch-icon-iphone-retina.png', rel: 'apple-touch-icon', sizes: '120x120' - = favicon_link_tag 'touch-icon-ipad-retina.png', rel: 'apple-touch-icon', sizes: '152x152' %link{ rel: 'mask-icon', href: image_path('logo.svg'), color: 'rgb(226, 67, 41)' } + -# iOS Webapp Config + %meta{ name: 'apple-mobile-web-app-title', content: 'GitLab' } + %meta{ name: 'apple-mobile-web-app-status-bar-style', content: 'black-translucent' } + %link{ rel: 'apple-touch-startup-image', href: 'webapp/touch-icon-ipad-retina.png' } + %link{ rel: 'apple-touch-icon', sizes: '152x152', href: 'webapp/touch-icon-ipad-retina.png' } + %link{ rel: 'apple-touch-icon', sizes: '120x120', href: 'webapp/touch-icon-iphone-retina.png' } + %link{ rel: 'apple-touch-icon', sizes: '76x76', href: 'webapp/touch-icon-ipad.png' } + + -# Android PWA config + %meta{ name: 'mobile-web-app-capable', content: 'yes' } + %meta{ name: 'theme-color', content: '#474D57' } + %link{ rel: 'manifest', href: '/manifest.json' } + -# Windows 8 pinned site tile %meta{ name: 'msapplication-TileImage', content: image_path('msapplication-tile.png') } %meta{ name: 'msapplication-TileColor', content: '#30353E' } |