summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-07-10 08:42:14 -0400
committerChristopher Speller <crspeller@gmail.com>2015-07-10 08:42:14 -0400
commitd254b641594f64ec39112afde3c660639b150e2b (patch)
tree51e330923d0200b1f0899b934db0e0e7ee607c36 /web
parent704b6766b21ef75cbec123ff73bb8872777056ff (diff)
parent5df0a55a5ae7a9dae906c0e1bbbe33fe2cbb3a67 (diff)
downloadchat-d254b641594f64ec39112afde3c660639b150e2b.tar.gz
chat-d254b641594f64ec39112afde3c660639b150e2b.tar.bz2
chat-d254b641594f64ec39112afde3c660639b150e2b.zip
Merge pull request #152 from faebser/manifest-for-mobile
Manifest for mobile
Diffstat (limited to 'web')
-rw-r--r--web/static/config/manifest.json13
-rw-r--r--web/templates/head.html13
2 files changed, 26 insertions, 0 deletions
diff --git a/web/static/config/manifest.json b/web/static/config/manifest.json
new file mode 100644
index 000000000..6110122c2
--- /dev/null
+++ b/web/static/config/manifest.json
@@ -0,0 +1,13 @@
+{
+ "name": "Mattermost",
+ "icons": [
+ {
+ "src": "../static/iamges/icon50x50.gif",
+ "sizes": "50x50",
+ "type": "image/png"
+ }
+ ],
+ "start_url": "/",
+ "display": "standalone",
+ "orientation": "portrait"
+} \ No newline at end of file
diff --git a/web/templates/head.html b/web/templates/head.html
index abcb30700..ead648571 100644
--- a/web/templates/head.html
+++ b/web/templates/head.html
@@ -5,6 +5,19 @@
<title>{{ .Title }}</title>
+ <!-- iOS add to homescreen -->
+ <meta name="apple-mobile-web-app-capable" content="yes" />
+ <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
+ <meta name="mobile-web-app-capable" content="yes" />
+ <meta name="apple-mobile-web-app-title" content="{{ .Title }}">
+ <meta name="application-name" content="{{ .Title }}">
+ <meta name="format-detection" content="telephone=no">
+ <!-- iOS add to homescreen -->
+
+ <!-- Android add to homescreen -->
+ <link rel="manifest" href="/static/config/manifest.json">
+ <!-- Android add to homescreen -->
+
<link rel="stylesheet" href="/static/css/bootstrap-3.3.1.min.css">
<link rel="stylesheet" href="/static/css/jasny-bootstrap.min.css" rel="stylesheet">