diff --git a/src/__celerity_resource_map__.php b/src/__celerity_resource_map__.php index 8c3e98a23e..34c8a0e3a4 100644 --- a/src/__celerity_resource_map__.php +++ b/src/__celerity_resource_map__.php @@ -14,6 +14,13 @@ celerity_register_resource_map(array( 'disk' => '/rsrc/image/actions/edit.png', 'type' => 'png', ), + '/rsrc/image/apple-touch-icon.png' => + array( + 'hash' => '3380adf2dd4a5efa0885618bc5943640', + 'uri' => '/res/3380adf2/rsrc/image/apple-touch-icon.png', + 'disk' => '/rsrc/image/apple-touch-icon.png', + 'type' => 'png', + ), '/rsrc/image/avatar.png' => array( 'hash' => '1c5f255071537f05406adee86717ff27', diff --git a/src/view/page/PhabricatorBarePageView.php b/src/view/page/PhabricatorBarePageView.php index d92836cabb..a5c112bb23 100644 --- a/src/view/page/PhabricatorBarePageView.php +++ b/src/view/page/PhabricatorBarePageView.php @@ -75,12 +75,27 @@ class PhabricatorBarePageView extends AphrontPageView { 'maximum-scale=1', )); } + $icon_tag = phutil_tag( + 'link', + array( + 'rel' => 'apple-touch-icon', + 'href' => celerity_get_resource_uri('/rsrc/image/apple-touch-icon.png') + )); + + $apple_tag = phutil_tag( + 'meta', + array( + 'name' => 'apple-mobile-web-app-status-bar-style', + 'content' => 'black-translucent' + )); $response = CelerityAPI::getStaticResourceResponse(); return hsprintf( - '%s%s', + '%s%s%s%s', $viewport_tag, + $icon_tag, + $apple_tag, $framebust, (PhabricatorEnv::getEnvConfig('phabricator.developer-mode') ? '1' : '0'), $response->renderResourcesOfType('css')); diff --git a/webroot/rsrc/image/apple-touch-icon.png b/webroot/rsrc/image/apple-touch-icon.png new file mode 100644 index 0000000000..493b3cb2c2 Binary files /dev/null and b/webroot/rsrc/image/apple-touch-icon.png differ