mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
The real problem was due to the use of a <pre> tag to display plaintext messages. By default, it does not automatically cut long lines as with other tags. Some CSS stuff fixed the problem. Fixed bad behaviour on some combinations between display mode and message available formats. (ie. plain/text or plain/html)
62 lines
1.6 KiB
HTML
62 lines
1.6 KiB
HTML
{% load i18n %}
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head profile="http://www.w3.org/2005/10/profile">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/box.css" />
|
|
|
|
<style type="text/css">
|
|
body {
|
|
margin: 5px;
|
|
}
|
|
pre {
|
|
white-space: pre-wrap; /* css-3 */
|
|
white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
|
|
white-space: -pre-wrap; /* Opera 4-6 */
|
|
white-space: -o-pre-wrap; /* Opera 7 */
|
|
word-wrap: break-word; /* Internet Explorer 5.5+ */
|
|
}
|
|
#mailcontent {
|
|
width: 100%;
|
|
border: 0px transparent none;
|
|
margin: 0;
|
|
}
|
|
table#emailheaders {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin-bottom: 10px;
|
|
}
|
|
#emailheaders td,
|
|
#emailheaders th {
|
|
height: 22px;
|
|
text-align: left;
|
|
padding-left: 10px;
|
|
border: 1px solid #ccc;
|
|
}
|
|
#emailheaders td {
|
|
font-size: 1em;
|
|
}
|
|
#emailheaders th {
|
|
background: #F7F9Fb;
|
|
}
|
|
#emailheaders a, #emailheaders a:visited {
|
|
color: blue;
|
|
text-decoration: none;
|
|
}
|
|
#emailheaders a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
pre {
|
|
font-size: medium;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="table-container">
|
|
{{ headers }}
|
|
</div>
|
|
{{ mailbody|safe }}
|
|
</body>
|
|
</html>
|