Skip to content

Commit

Permalink
Convert error pages to BS3.
Browse files Browse the repository at this point in the history
- Don't leave the meta title empty.
- Present the error in a panel.
  • Loading branch information
jerivas committed Oct 1, 2013
1 parent 36e45af commit 655b080
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion mezzanine/core/templates/errors/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,17 @@

{% load i18n %}

{% block meta_title %}
{% trans "Page not found" %}
{% endblock %}

{% block title %}
{% trans "Page not found" %}
{% endblock %}

{% block main %}
{% trans "The page you requested does not exist." %}
<div class="panel panel-danger">
<div class="panel-heading"><h3 class="panel-title">{% trans "Page not found" %}</h3></div>
<div class="panel-body">{% trans "The page you requested does not exist." %}</div>
</div>
{% endblock %}
9 changes: 8 additions & 1 deletion mezzanine/core/templates/errors/500.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,17 @@

{% load i18n %}

{% block meta_title %}
{% trans "Error" %}
{% endblock %}

{% block title %}
{% trans "Error" %}
{% endblock %}

{% block main %}
{% trans "Sorry, an error occurred." %}
<div class="panel panel-danger">
<div class="panel-heading"><h3 class="panel-title">{% trans "Error" %}</h3></div>
<div class="panel-body">{% trans "Sorry, an error occurred." %}</div>
</div>
{% endblock %}

0 comments on commit 655b080

Please sign in to comment.