Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
4dc1ccd3
Commit
4dc1ccd3
authored
Jun 01, 2015
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better titles for error pages
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
f4baeb27
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
1 deletion
+17
-1
weblate/html/403.html
weblate/html/403.html
+4
-0
weblate/html/404.html
weblate/html/404.html
+4
-0
weblate/html/500.html
weblate/html/500.html
+4
-0
weblate/trans/views/basic.py
weblate/trans/views/basic.py
+5
-1
No files found.
weblate/html/403.html
View file @
4dc1ccd3
{% extends "base.html" %}
{% extends "base.html" %}
{% load i18n %}
{% load i18n %}
{% block breadcrumbs %}
<li><a
href=
"{% url 'home' %}"
>
{% trans "Permission Denied" %}
</a></li>
{% endblock %}
{% block content %}
{% block content %}
<p>
<p>
...
...
weblate/html/404.html
View file @
4dc1ccd3
{% extends "base.html" %}
{% extends "base.html" %}
{% load i18n %}
{% load i18n %}
{% block breadcrumbs %}
<li><a
href=
"{% url 'home' %}"
>
{% trans "Page Not Found" %}
</a></li>
{% endblock %}
{% block content %}
{% block content %}
<p>
<p>
...
...
weblate/html/500.html
View file @
4dc1ccd3
{% extends "base.html" %}
{% extends "base.html" %}
{% load i18n %}
{% load i18n %}
{% block breadcrumbs %}
<li><a
href=
"{% url 'home' %}"
>
{% trans "Internal Server Error" %}
</a></li>
{% endblock %}
{% block content %}
{% block content %}
<h2>
{% trans "Server Error" %}
</h2>
<h2>
{% trans "Server Error" %}
</h2>
...
...
weblate/trans/views/basic.py
View file @
4dc1ccd3
...
@@ -377,7 +377,11 @@ def server_error(request):
...
@@ -377,7 +377,11 @@ def server_error(request):
return
render
(
return
render
(
request
,
request
,
'500.html'
,
'500.html'
,
status
=
500
{
'request_path'
:
request
.
path
,
'title'
:
_
(
'Internal Server Error'
),
},
status
=
500
,
)
)
except
Exception
:
except
Exception
:
return
django
.
views
.
defaults
.
server_error
(
request
)
return
django
.
views
.
defaults
.
server_error
(
request
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment