Browse Source

add 500 error page

devel
Dmitry Novikov 8 years ago
parent
commit
32cc37f36d
  1. 2
      abonapp/locale/ru/LC_MESSAGES/django.po
  2. 9
      locale/ru/LC_MESSAGES/django.po
  3. 1
      templates/403.html
  4. 45
      templates/500.html

2
abonapp/locale/ru/LC_MESSAGES/django.po

@ -212,7 +212,7 @@ msgstr "Покупка тарифного плана через админку"
#: models.py:228
msgid "Account %(username)s not have any active leases"
msgstr "УчётнаÑ� запР%(username)s¸Ñ�ÑŒ не имеет ни одной активной Ñ�еÑ�Ñ�ии"
msgstr "Учётна� запи�ь %(username)s не имеет ни одной активной �е��ии"
#: models.py:236 models.py:253 models.py:270 views.py:667 views.py:1100
#: views.py:1143

9
locale/ru/LC_MESSAGES/django.po

@ -113,3 +113,12 @@ msgstr "Устройства"
msgid "Ip pool"
msgstr "IP пул"
msgid "Server error"
msgstr "Ошибка сервера"
msgid "500 - Server error"
msgstr "500 - Ошибка сервера"
msgid "A server has error occurred. Please contact the administrator."
msgstr "На сервере произошла ошибка. Пожалуйста свяжитесь с системным администратором."

1
templates/403.html

@ -8,7 +8,6 @@
<!-- Core CSS - Include with every page -->
<link rel="stylesheet" href="/static/css/bootstrap.min.css">
<link rel="stylesheet" href="/static/css/bootstrap-theme.min.css">
<style>
.no-border-on-me>thead>tr>th,

45
templates/500.html

@ -0,0 +1,45 @@
<!DOCTYPE html>{% load i18n %}
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head lang="{{ LANGUAGE_CODE }}">
<meta charset="UTF-8">
<title>{% trans 'Server error' %}</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- Core CSS - Include with every page -->
<link rel="stylesheet" href="/static/css/bootstrap.min.css">
<style>
.no-border-on-me>thead>tr>th,
.no-border-on-me>tbody>tr>th,
.no-border-on-me>tfoot>tr>th,
.no-border-on-me>thead>tr>td,
.no-border-on-me>tbody>tr>td,
.no-border-on-me>tfoot>tr>td
{
border-top-style: none;
border-bottom-style: none;
}
</style>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<div align="center"><h1>{% trans '500 - Server error' %}</h1></div>
<div align="center"><p>{% trans 'A server has error occurred. Please contact the administrator.' %}</p></div>
</div>
</div>
</div>
</body>
</html>
Loading…
Cancel
Save