mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Few changes.
This commit is contained in:
@@ -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))
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -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
@@ -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")),
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user