Browse Source

Added metadescriptions to error pages.

Rafał Pitoń 11 years ago
parent
commit
0e71e7ce9a

+ 3 - 0
misago/templates/misago/errorpages/403.html

@@ -6,6 +6,9 @@
 {% block title %}{% trans "Page not available" %} | {{ block.super }}{% endblock %}
 
 
+{% block meta_description %}{% if message %}{{ message }}{% else %}{% trans "You don't have permission to access this page." %}{% endif %}{% endblock meta_description %}
+
+
 {% block content %}
 <div class="container">
 

+ 3 - 0
misago/templates/misago/errorpages/404.html

@@ -6,6 +6,9 @@
 {% block title %}{% trans "Page not found" %} | {{ block.super }}{% endblock %}
 
 
+{% block meta_description %}{% trans "The link you clicked was incorrect or the page has been moved or deleted." %}{% endblock meta_description %}
+
+
 {% block content %}
 <div class="container">
 

+ 3 - 0
misago/templates/misago/errorpages/csrf_failure.html

@@ -6,6 +6,9 @@
 {% block title %}{% trans "Request blocked" %} | {{ block.super }}{% endblock %}
 
 
+{% block meta_description %}{% trans "This is usually caused by your browser not accepting or using outdated cookies. Check your browser configuration and try again." %}{% endblock meta_description %}
+
+
 {% block content %}
 <div class="container">
 

+ 3 - 0
misago/templates/misago/errorpages/wrong_way.html

@@ -6,6 +6,9 @@
 {% block title %}{% trans "Wrong way" %} | {{ block.super }}{% endblock %}
 
 
+{% block meta_description %}{% trans "This page should be reached via form submission or pressing button." %}{% endblock meta_description %}
+
+
 {% block content %}
 <div class="container">