mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 08:02:54 +11:00
Translate error pages.
This commit is contained in:
parent
0c9b346c4d
commit
6741ccc6b4
4 changed files with 14 additions and 7 deletions
|
@ -16,6 +16,7 @@ Changelog
|
|||
``cleanup_snipppet`` managemenent command. It's still encouraged to have the
|
||||
management command setup, just run it daily, so snippets which expired but
|
||||
never got fetched by a client are deleted properly.
|
||||
- All pages have sane Expire or Max-Age header.
|
||||
- Onetime snippets which were never viewed a second time are now deleted if
|
||||
they reach the default expire date.
|
||||
- New AppConfig setting ``APPLICATION_NAME`` that can be used to replace the
|
||||
|
@ -27,6 +28,7 @@ Changelog
|
|||
- Forced line-break for superlongwordsthatwouldexceedthecanvas.
|
||||
- Local development is no longer centered around ``pipenv`` and is rather using
|
||||
docker-compose or the classic virtualenv based setups.
|
||||
- Error pages are now correctly translated.
|
||||
- Testsuite now uses pytest.
|
||||
|
||||
3.3.1 (2019-08-04):
|
||||
|
|
|
@ -1,15 +1,16 @@
|
|||
{% extends "dpaste/base.html" %}
|
||||
|
||||
{% block title %}404 Snippet not found{% endblock %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %}{% trans "404 Snippet not found" %}{% endblock %}
|
||||
|
||||
{% block body_type %}text-page{%endblock %}
|
||||
|
||||
{% block page %}
|
||||
<article>
|
||||
<h2 class="first-item">404 Snippet not found</h2>
|
||||
<h2 class="first-item">{% trans "404 Snippet not found" %}</h2>
|
||||
<p>
|
||||
This snippet no longer exists. Snippets are automatically
|
||||
deleted when they reach their expiration date.
|
||||
{% trans "This snippet no longer exists. Snippets are automatically deleted when they reach their expiration date." %}
|
||||
</p>
|
||||
</article>
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,12 +1,14 @@
|
|||
{% extends "dpaste/base.html" %}
|
||||
|
||||
{% block title %}500 Internal Server Error{% endblock %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %}{% trans "500 Internal Server Error" %}{% endblock %}
|
||||
|
||||
{% block body_type %}text-page{%endblock %}
|
||||
|
||||
{% block page %}
|
||||
<article>
|
||||
<h2 class="first-item">500 Internal Server Error</h2>
|
||||
<p>There was an issue with your request.</p>
|
||||
<h2 class="first-item">{% trans "500 Internal Server Error" %}</h2>
|
||||
<p>{% trans "There was an issue with your request." %}</p>
|
||||
</article>
|
||||
{% endblock %}
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
{% block meta %}<meta name="robots" content="noindex, nofollow"/>{% endblock %}
|
||||
<style type="text/css">{% staticinline "dpaste.css" %}</style>
|
||||
{% block extrahead %}{% endblock %}
|
||||
{{ dpaste_extra_head_html }}
|
||||
</head>
|
||||
<body {% block body_type %}{%endblock %}>
|
||||
|
@ -28,5 +29,6 @@
|
|||
<main>{% block page %}{% endblock %}</main>
|
||||
|
||||
<script>{% staticinline "dpaste.js" %}</script>
|
||||
{% block extrascript %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue