Few changes.

This commit is contained in:
Antoine Nguyen
2017-04-20 15:06:44 +02:00
parent 4cd41fa195
commit e93a94b241
3 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ class CommonExceptionCatcher(object):
unicode(exception), status=exception.http_code
)
return _render_error(
request, user_context=dict(error=str(exception))
request, user_context=dict(error=unicode(exception))
)
+5 -3
View File
@@ -6,9 +6,11 @@
<link rel="stylesheet" type="text/css" href="{% static 'css/viewmail.css' %}" />
</head>
<body>
<div id="table-container">
{{ headers }}
</div>
{% if headers %}
<div id="table-container">
{{ headers }}
</div>
{% endif %}
{{ mailbody|safe }}
</body>
</html>
+1 -1
View File
@@ -37,7 +37,7 @@ if extra_routes:
# API urls
urlpatterns += [
url("^docs/api/", include_docs_urls(title=API_TITLE)),
url("^docs/api/", include_docs_urls(title=API_TITLE, public=False)),
url("^api/v1/", include("modoboa.urls_api", namespace="api")),
]