File: error.html.jinja2

package info (click to toggle)
python-pdoc 16.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,080 kB
  • sloc: python: 5,260; javascript: 1,156; makefile: 18; sh: 3
file content (38 lines) | stat: -rw-r--r-- 970 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{# this template is used by pdoc's integrated web server to display runtime errors. #}
{% extends "frame.html.jinja2" %}
{% block title %}{{ error }}{% endblock %}
{% block style %}
    <style>{% include "resources/bootstrap-reboot.min.css" %}</style>
    <style>
        body {
            padding: 2rem;
            max-width: 54rem;
        }

        footer {
            text-align: right;
        }

        h1 {
            margin-bottom: 2rem;
        }

        footer svg {
            max-width: 70px;
            max-height: 35px;
            transition: all 200ms;
            filter: grayscale(100%);
        }

        footer svg:hover {
            filter: grayscale(0%);
        }
    </style>
{% endblock %}
{% block body %}
    <h1>{{ error }}</h1>
    <pre>{{ details }}</pre>
    <hr>
    <footer><a title="built with pdoc {{ __version__ }}"
               href="https://pdoc.dev">{% include 'resources/pdoc-logo.svg' %}</a></footer>
{% endblock %}