[Rt-commit] rt branch, 4.2/ios-homescreen, created. rt-4.0.0rc6-157-gd17c6cf

Shawn Moore sartak at bestpractical.com
Tue Mar 8 16:23:42 EST 2011


The branch, 4.2/ios-homescreen has been created
        at  d17c6cf13cf848935fc55e849da8760f5c66dd08 (commit)

- Log -----------------------------------------------------------------
commit 9ce7450ab9dcf1da714a6fdd1f32acf8f52d7e2b
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Tue Mar 8 16:12:49 2011 -0500

    Hide browser chrome in webclipped RT on iOS devices

diff --git a/share/html/m/_elements/header b/share/html/m/_elements/header
index 9d72632..b802c94 100644
--- a/share/html/m/_elements/header
+++ b/share/html/m/_elements/header
@@ -59,6 +59,7 @@ $r->headers_out->{'Cache-control'} = 'no-cache';
 <link rel="stylesheet" type="text/css" href="<%RT->Config->Get('WebPath')|n%>/m/style.css"/>
 <title><%$title%></title>
 <meta name="viewport" content="width=device-width height=device-height user-scalable=yes"/>
+<meta name="apple-mobile-web-app-capable" content="yes" /> <!-- hide browser chrome in webclipped RT -->
 </head>
 <body>
 % if ($show_home_button) {

commit d17c6cf13cf848935fc55e849da8760f5c66dd08
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Tue Mar 8 16:23:07 2011 -0500

    Add an (asstastic) web icon for iOS devices

diff --git a/share/html/m/_elements/header b/share/html/m/_elements/header
index b802c94..79a53dd 100644
--- a/share/html/m/_elements/header
+++ b/share/html/m/_elements/header
@@ -60,6 +60,7 @@ $r->headers_out->{'Cache-control'} = 'no-cache';
 <title><%$title%></title>
 <meta name="viewport" content="width=device-width height=device-height user-scalable=yes"/>
 <meta name="apple-mobile-web-app-capable" content="yes" /> <!-- hide browser chrome in webclipped RT -->
+<link rel="apple-touch-icon" href="<%RT->Config->Get('WebPath')%>/m/images/apple-touch-icon.png" /> <!-- webclipped RT app icon -->
 </head>
 <body>
 % if ($show_home_button) {
diff --git a/share/html/m/images/apple-touch-icon.png b/share/html/m/images/apple-touch-icon.png
new file mode 100755
index 0000000..ed1ee37
Binary files /dev/null and b/share/html/m/images/apple-touch-icon.png differ
diff --git a/share/html/m/images/autohandler b/share/html/m/images/autohandler
new file mode 100644
index 0000000..7abf8b8
--- /dev/null
+++ b/share/html/m/images/autohandler
@@ -0,0 +1,8 @@
+<%INIT>
+# This autohandler will spit out RT's images if the user hasn't 
+# properly configured their webserver to stop RT from passing 
+# images through the mason handler.
+my $file = $m->base_comp->source_file;
+my $relfile = $m->base_comp->path;
+RT::Interface::Web->SendStaticFile( File => $file, RelativeFile => $relfile );
+</%INIT>

-----------------------------------------------------------------------


More information about the Rt-commit mailing list