discourse/app/views/offline/offline.html.erb
Penar Musaraj bd1616d3d9 Add offline route and service worker to fix Android app install banner (#5217)
* set up static offline.html route and service worker for Android Web App Banner

* add viewport meta tag to offline view for android app banner

* add i18n support for offline.html pages, cleanup

* fix html syntax, add page title, remove license for service-worker.js
2017-10-31 10:46:48 +11:00

18 lines
756 B
Plaintext

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="<%= SiteSetting.default_locale %>" xml:lang="<%= SiteSetting.default_locale %>">
<head>
<meta http-equiv="Content-type" name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width">
<title><%= SiteSetting.title %></title>
</head>
<body>
<div style="padding:100px 40px; text-align:center; font-family: Helvetica, Arial, sans-serif;">
<h1 style="font-size: 36px; color: #333;"><%= t 'offline.title' %></h1>
<p style="margin: 40px; font-size: 18px; color: #555;">
<%= t 'offline.offline_page_message' %>
</p>
</div>
</body>
</html>