mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
add error page templates
This commit is contained in:
parent
f9dc2f7b7e
commit
84df1a5e26
5
IPython/html/templates/404.html
Normal file
5
IPython/html/templates/404.html
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{% extends "error.html" %}
|
||||||
|
{% block error_detail %}
|
||||||
|
<p>You are requesting a page that does not exist!</p>
|
||||||
|
{% endblock %}
|
||||||
|
|
31
IPython/html/templates/error.html
Normal file
31
IPython/html/templates/error.html
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
{% extends "page.html" %}
|
||||||
|
|
||||||
|
{% block login_widget %}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block stylesheet %}
|
||||||
|
{{super()}}
|
||||||
|
<style type="text/css">
|
||||||
|
/* disable initial hide */
|
||||||
|
div#header, div#site {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
{% endblock %}
|
||||||
|
{% block site %}
|
||||||
|
|
||||||
|
<div class="error">
|
||||||
|
{% block h1_error %}
|
||||||
|
<h1>{{status_code}} : {{status_message}}</h1>
|
||||||
|
{% endblock h1_error %}
|
||||||
|
{% block error_detail %}
|
||||||
|
{% if message %}
|
||||||
|
<p>The error was:</p>
|
||||||
|
<div class="traceback-wrapper">
|
||||||
|
<pre class="traceback">{{message | replace('\n', '<br/>')}}</pre>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
{% endblock %}
|
||||||
|
</header>
|
||||||
|
|
||||||
|
{% endblock %}
|
Loading…
Reference in New Issue
Block a user