-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create generic error page to handle exceptions in views. (#1549)
* create error page to handle exceptions in views. * pip and docstring
- Loading branch information
1 parent
ab5532a
commit 4340686
Showing
5 changed files
with
84 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block preamble %} | ||
|
||
<title>There seems to be an issue - JWQL</title> | ||
|
||
{% endblock %} | ||
|
||
{% block content %} | ||
|
||
<main role="main" class="container"> | ||
|
||
<!--Add JavaScript to make text fade in after video loads--> | ||
<script> | ||
$(document).ready(function() { | ||
$("#space_404_text").delay(500).fadeIn(200); | ||
}); | ||
</script> | ||
|
||
<!-- The video --> | ||
<video autoplay muted loop id="space_404"> | ||
<source src={{ static("img/flyby.mov") }} type="video/mp4" alt=""> | ||
</video> | ||
|
||
<!-- Overlay text to describe the video --> | ||
<div id="space_404_text"> | ||
<h1>Don't Panic!</h1> | ||
<p class="wrapped-error-text">{{ error_message }}</p> | ||
<p class="wrapped-error-text">{{ exception_message }}</p> | ||
<img src={{ static("img/spacecat.jpg") }} alt='SpaceCAT' style="width:650px;height:400px;"> | ||
|
||
</div> | ||
|
||
</main> | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters