mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Closes #4945: Add a user-friendly 403 error page
This commit is contained in:
9
netbox/templates/403.html
Normal file
9
netbox/templates/403.html
Normal file
@@ -0,0 +1,9 @@
|
||||
{% extends '40x.html' %}
|
||||
|
||||
{% block title %}Access Denied{% endblock %}
|
||||
|
||||
{% block icon %}<i class="glyphicon glyphicon-lock"></i>{% endblock %}
|
||||
|
||||
{% block message %}
|
||||
You do not have permission to access this page.
|
||||
{% endblock %}
|
@@ -1,19 +1,9 @@
|
||||
{% extends 'base.html' %}
|
||||
{% extends '40x.html' %}
|
||||
|
||||
{% block content %}
|
||||
<div class="row" style="margin-top: 150px;">
|
||||
<div class="col-sm-4 col-sm-offset-4">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<strong><i class="glyphicon glyphicon-warning-sign"></i> Page Not Found</strong>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
The requested page does not exist.
|
||||
</div>
|
||||
<div class="panel-footer text-right">
|
||||
<a href="{% url 'home' %}" class="btn btn-xs btn-primary">Home Page</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% block title %}Page Not Found{% endblock %}
|
||||
|
||||
{% block icon %}<i class="glyphicon glyphicon-warning-sign"></i>{% endblock %}
|
||||
|
||||
{% block message %}
|
||||
The requested page does not exist.
|
||||
{% endblock %}
|
||||
|
19
netbox/templates/40x.html
Normal file
19
netbox/templates/40x.html
Normal file
@@ -0,0 +1,19 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block content %}
|
||||
<div class="row" style="margin-top: 150px;">
|
||||
<div class="col-sm-4 col-sm-offset-4">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<strong>{% block icon %}{% endblock %} {% block title %}{% endblock %}</strong>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
{% block message %}{% endblock %}
|
||||
</div>
|
||||
<div class="panel-footer text-right">
|
||||
<a href="{% url 'home' %}" class="btn btn-xs btn-primary">Home Page</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user