Remove icon from html_fallback

This commit is contained in:
Fritz Reichwald 2016-12-28 22:23:05 +01:00
parent 0bd3100de8
commit 421fc7eca3

View File

@ -32,38 +32,20 @@ from qutebrowser.utils import utils, urlutils, log
from PyQt5.QtCore import QUrl from PyQt5.QtCore import QUrl
html_fallback = """<!DOCTYPE html> html_fallback = """
<!DOCTYPE html>
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>{{ title }}</title> <title>Error while loading template</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>
</head> </head>
<body> <body>
<div id="error-container"> <p><span style="font-size:120%;color:red">
<table> The %FILE% template could not be found!<br>
<tr> Please check your qutebrowser installation
<td style="width: 10%; vertical-align: top;"> </span><br>
<img style="width: 100%; display: block; max-width: 256px;" src="{{ data_url("img/broken_qutebrowser_logo.png") }}" /> %ERROR%
</td> </p>
<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>
</body> </body>
</html> </html>
""" """