-
-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip: add a 403.html template (#2396)
fix #2390
- Loading branch information
Showing
8 changed files
with
99 additions
and
28 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,12 @@ | ||
{% extends "40x.html" %} | ||
|
||
{% load i18n %} | ||
|
||
{% block content %} | ||
<div class="content-40x"> | ||
<h1>{{ exception }}</h1> | ||
<p>{% blocktrans %}<a href="https://discover.umap-project.org/support/faq/#map-statuses" target="_blank">Find out here the documentation</a> on how to manage map’s permissions.{% endblocktrans %}</p> | ||
<hr> | ||
<p><a href="{% url 'home' %}">{% trans "← Go to the homepage" %}</a></p> | ||
</div> | ||
{% endblock content %} |
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 |
---|---|---|
@@ -1,19 +1,10 @@ | ||
{% extends "base.html" %} | ||
{% extends "40x.html" %} | ||
|
||
{% load i18n static %} | ||
|
||
{% block content %} | ||
<div class="content404"> | ||
<a href="{% url "home" %}" | ||
title="{% trans "Take me to the home page" %}"> | ||
<h1> | ||
4 | ||
<img alt="0" width="128px" height="128px" src="{% static "umap/img/logo.svg" %}"> | ||
4 | ||
</h1> | ||
<h2> | ||
Not Found | ||
</h2> | ||
</a> | ||
<div class="content-40x content-404"> | ||
<h1>{% trans "404 Page Not Found" %}</h1> | ||
<p><a href="{% url 'home' %}">{% trans "← Go to the homepage" %}</a></p> | ||
</div> | ||
{% endblock content %} |
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,9 @@ | ||
{% extends "base.html" %} | ||
|
||
{% load umap_tags %} | ||
{% block body_class %}page-40x{% endblock body_class %} | ||
{% block extra_head %} | ||
{% umap_css %} | ||
{{ block.super }} | ||
{% umap_js %} | ||
{% endblock extra_head %} |