Removed duplicated error handling for 404 errors

This commit is contained in:
Alejandro Celaya
2016-07-28 09:40:36 +02:00
parent 36259588db
commit af9193f721
8 changed files with 18 additions and 79 deletions

View File

@@ -12,7 +12,9 @@
{% block content %}
<h1>{{ translate('Oops!') }}</h1>
<hr>
<p>{{ translate('We encountered a %s %s error.') | format(status, reason) }}</p>
{% if status != 404 %}
<p>{{ translate('We encountered a %s %s error.') | format(status, reason) }}</p>
{% endif %}
{% if status == 404 %}
<p>{{ translate('This short URL doesn\'t seem to be valid.') }}</p>
<p>{{ translate('Make sure you included all the characters, with no extra punctuation.') }}</p>