summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFritz Reichwald <reichwald@b1-systems.de>2016-12-28 22:23:05 +0100
committerFritz Reichwald <reichwald@b1-systems.de>2016-12-28 22:23:05 +0100
commit421fc7eca34155239f2ecc6586df68f320295f26 (patch)
treead4cfb3ef285707ea7f2c70d6ec305100a2b7636
parent0bd3100de81ed122c9afad98bf51e631f5615b5c (diff)
downloadqutebrowser-421fc7eca34155239f2ecc6586df68f320295f26.tar.gz
qutebrowser-421fc7eca34155239f2ecc6586df68f320295f26.zip
Remove icon from html_fallback
-rw-r--r--qutebrowser/utils/jinja.py36
1 files changed, 9 insertions, 27 deletions
diff --git a/qutebrowser/utils/jinja.py b/qutebrowser/utils/jinja.py
index 737b4aee1..e9ca30c5d 100644
--- a/qutebrowser/utils/jinja.py
+++ b/qutebrowser/utils/jinja.py
@@ -32,38 +32,20 @@ from qutebrowser.utils import utils, urlutils, log
from PyQt5.QtCore import QUrl
-html_fallback = """<!DOCTYPE html>
+html_fallback = """
+<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
- <title>{{ title }}</title>
- {% if icon %}
- <link rel="icon" type="image/png" href="{{ icon }}">
- {% endif %}
- <style type="text/css">
- {% block style %}
- body {
- background-color: #fff;
- margin: 0;
- padding: 0;
- }
- {% endblock %}
- </style>
+ <title>Error while loading template</title>
</head>
<body>
- <div id="error-container">
- <table>
- <tr>
- <td style="width: 10%; vertical-align: top;">
- <img style="width: 100%; display: block; max-width: 256px;" src="{{ data_url("img/broken_qutebrowser_logo.png") }}" />
- </td>
- <td style="padding-left: 40px;">
- <p><span style="font-size:120%;color:red">The %FILE% template could not be found!<br>Please check your qutebrowser installation</span><br>
- %ERROR%</p>
- </td>
- </tr>
- </table>
- </div>
+ <p><span style="font-size:120%;color:red">
+ The %FILE% template could not be found!<br>
+ Please check your qutebrowser installation
+ </span><br>
+ %ERROR%
+ </p>
</body>
</html>
"""