From 350f1c14055ad01ddba8d0feef291afb3b53a723 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 28 Aug 2014 18:01:00 +0200 Subject: [PATCH] Use inherited templates for error page. --- qutebrowser/html/base.html | 29 ++++++++++ qutebrowser/html/error.html | 110 ++++++++++++++++-------------------- 2 files changed, 77 insertions(+), 62 deletions(-) create mode 100644 qutebrowser/html/base.html diff --git a/qutebrowser/html/base.html b/qutebrowser/html/base.html new file mode 100644 index 000000000..51bf2f431 --- /dev/null +++ b/qutebrowser/html/base.html @@ -0,0 +1,29 @@ + + + + + + + {{ title }} + {% if icon %} + + {% endif %} + + + + + {% block content %} + {% endblock %} + + diff --git a/qutebrowser/html/error.html b/qutebrowser/html/error.html index fc05a54d3..664725f1e 100644 --- a/qutebrowser/html/error.html +++ b/qutebrowser/html/error.html @@ -1,67 +1,53 @@ - - +{% extends "base.html" %} +{% block style %} +{{ super() }} +#errorContainer { + background: #fff; + min-width: 35em; + max-width: 35em; + position: absolute; + top: 2em; + left: 1em; + padding: 10px; + border: 2px solid #eee; + -webkit-border-radius: 5px; +} - - - - {{ title }} - - - - - -
-
-

Unable to load page

-
-
-

Problem occurred while loading the URL {{ url }}

-

{{ error }}

-

-
+{% block content %} +
+
+

Unable to load page

+
+
+

Problem occurred while loading the URL {{ url }}

+

{{ error }}

+

+
-
- - -
-
- - +
+ + +
+
+{% endblock %}