aboutsummaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <descalante@igalia.com>2009-09-01 13:05:36 +0800
committerDiego Escalante Urrelo <descalante@igalia.com>2010-12-11 00:53:50 +0800
commite435a10d44dfed0705a5703b406c854a1208821e (patch)
treec379fa7e3b59974f72813868a5cb504b378e1ff1 /data
parent3a1e97fbd04ca466535da01e8fdd0bca95560aa4 (diff)
downloadgsoc2013-epiphany-e435a10d44dfed0705a5703b406c854a1208821e.tar
gsoc2013-epiphany-e435a10d44dfed0705a5703b406c854a1208821e.tar.gz
gsoc2013-epiphany-e435a10d44dfed0705a5703b406c854a1208821e.tar.bz2
gsoc2013-epiphany-e435a10d44dfed0705a5703b406c854a1208821e.tar.lz
gsoc2013-epiphany-e435a10d44dfed0705a5703b406c854a1208821e.tar.xz
gsoc2013-epiphany-e435a10d44dfed0705a5703b406c854a1208821e.tar.zst
gsoc2013-epiphany-e435a10d44dfed0705a5703b406c854a1208821e.zip
ephy-web-view: use custom error pages
Show nice error pages instead of WebKitGTK+'s defaults. Bug #592667
Diffstat (limited to 'data')
-rw-r--r--data/Makefile.am2
-rw-r--r--data/pages/Makefile.am6
-rw-r--r--data/pages/error.html73
-rw-r--r--data/pages/recovery.html73
4 files changed, 153 insertions, 1 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index e6ab83e4a..6fcfa8144 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -1,4 +1,4 @@
-SUBDIRS = art glade icons ui
+SUBDIRS = art glade icons pages ui
@INTLTOOL_SERVER_RULE@
@INTLTOOL_DESKTOP_RULE@
diff --git a/data/pages/Makefile.am b/data/pages/Makefile.am
new file mode 100644
index 000000000..f2b879a5f
--- /dev/null
+++ b/data/pages/Makefile.am
@@ -0,0 +1,6 @@
+errorpagesdir = $(pkgdatadir)/pages
+errorpages_DATA = \
+ recovery.html \
+ error.html
+
+EXTRA_DIST = $(errorpages_DATA)
diff --git a/data/pages/error.html b/data/pages/error.html
new file mode 100644
index 000000000..0c6db3be4
--- /dev/null
+++ b/data/pages/error.html
@@ -0,0 +1,73 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<!--
+ Copyright © 2010 Vinicius Depizzol
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+-->
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="%s" lang="%s">
+<head>
+ <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+ <title>%s</title>
+ <style type="text/css">
+ body {
+ margin: 0 auto;
+ padding: 7em;
+ font: message-box;
+ display: table;
+ direction: %s;
+ }
+ div#centeredContent {
+ display: table;
+ margin: 0 auto;
+ }
+ div#centeredContent h1 {
+ display: table-row;
+ }
+ div#centeredContent div {
+ display: table-row-group;
+ }
+ h1 {
+ font-size: 180%;
+ }
+ img {
+ vertical-align: middle;
+ float: left;
+ margin-right: 20px;
+ width: 50px;
+ height: 50px;
+ }
+ p.buttonbox {
+ text-align: right;
+ }
+ </style>
+ <script type="text/javascript">
+ function load_anyway()
+ {
+ window.location = '%s';
+ }
+ </script>
+</head>
+<body>
+<img src="%s"/>
+<div id="centeredContent">
+ <div>
+ <h1 style="text-align:left;">%s</h1>
+ <p class="message">%s</p>
+ <p class="buttonbox">
+ <button onclick="javascript:load_anyway()">%s</button></p>
+ </div>
+</div>
+</body>
+</html>
diff --git a/data/pages/recovery.html b/data/pages/recovery.html
new file mode 100644
index 000000000..0c6db3be4
--- /dev/null
+++ b/data/pages/recovery.html
@@ -0,0 +1,73 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<!--
+ Copyright © 2010 Vinicius Depizzol
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+-->
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="%s" lang="%s">
+<head>
+ <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+ <title>%s</title>
+ <style type="text/css">
+ body {
+ margin: 0 auto;
+ padding: 7em;
+ font: message-box;
+ display: table;
+ direction: %s;
+ }
+ div#centeredContent {
+ display: table;
+ margin: 0 auto;
+ }
+ div#centeredContent h1 {
+ display: table-row;
+ }
+ div#centeredContent div {
+ display: table-row-group;
+ }
+ h1 {
+ font-size: 180%;
+ }
+ img {
+ vertical-align: middle;
+ float: left;
+ margin-right: 20px;
+ width: 50px;
+ height: 50px;
+ }
+ p.buttonbox {
+ text-align: right;
+ }
+ </style>
+ <script type="text/javascript">
+ function load_anyway()
+ {
+ window.location = '%s';
+ }
+ </script>
+</head>
+<body>
+<img src="%s"/>
+<div id="centeredContent">
+ <div>
+ <h1 style="text-align:left;">%s</h1>
+ <p class="message">%s</p>
+ <p class="buttonbox">
+ <button onclick="javascript:load_anyway()">%s</button></p>
+ </div>
+</div>
+</body>
+</html>