-
-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes and custom 404/500 pages (#544)
- Loading branch information
1 parent
0dbe6eb
commit 41567b7
Showing
3 changed files
with
44 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{% extends "base.html" %} | ||
{% block content %} | ||
<div style="font-family: 'Arial';"> | ||
<center> | ||
<h1>The Page you are looking for can't be found.</h1> | ||
{% if exception %} | ||
Error message: {{exception}} | ||
{% endif %} | ||
</center> | ||
</div> | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{% extends "base.html" %} | ||
{% load staticfiles %} | ||
{% block content %} | ||
<div style="font-family: 'Arial';"> | ||
<center> | ||
<h1>The Page you are looking is down or doesn't exist.</h1> | ||
{% if exception %} | ||
Error message: {{exception}} | ||
{% endif %} | ||
<br>Refresh the page or report it <a><span class="errors">here</span></a>. | ||
</center> | ||
</div> | ||
<script type="text/javascript"> | ||
$(document).ready(function () { | ||
$(document).on('click', '.errors', function () { | ||
var url = window.location.href; | ||
var bugheist = 'https://www.bugheist.com/report/?url=' + url; | ||
var redirectWindow = window.open(bugheist, '_blank'); | ||
redirectWindow.location; | ||
}); | ||
}); | ||
</script> | ||
{% 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