Updated index and error pages
This commit is contained in:
parent
159aa21c06
commit
d41dab6051
4 changed files with 27 additions and 2 deletions
8
counter/templates/403.html
Normal file
8
counter/templates/403.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Not authorized{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1 class="center">Not authorized</h1>
|
||||
<p>You are not authorized to perform this action. Please <a href="{% url "index" %}">return to the home</a>.</p>
|
||||
{% endblock %}
|
8
counter/templates/404.html
Normal file
8
counter/templates/404.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Page not found{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1 class="center">Page not found</h1>
|
||||
<p>This page has not been found. Please <a href="{% url "index" %}">return to the home</a>.</p>
|
||||
{% endblock %}
|
8
counter/templates/500.html
Normal file
8
counter/templates/500.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Internal server error{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1 class="center">Internal server error</h1>
|
||||
<p>The server failed to process the request. Please <a href="{% url "index" %}">return to the home</a>.</p>
|
||||
{% endblock %}
|
|
@ -1,6 +1,7 @@
|
|||
{% extends 'base.html' %}
|
||||
|
||||
{% block title %}index{% endblock %}
|
||||
{% block title %}Home{% endblock %}
|
||||
{% block content %}
|
||||
<marquee>Viva luciano malusa!</marquee>
|
||||
<h1 class="center">Arrow counter</h1>
|
||||
<h4 class="center">A simple online arrow counter</h4>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in a new issue