Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 99476f90 authored by runemaster's avatar runemaster

If E-Mail is HTML, use a white background instead of the default black.

parent 19204c3b
......@@ -3,6 +3,8 @@
load("../web/lib/msgslib.ssjs");
load("../web/lib/mime_decode.ssjs");
template.txtbodybgwht=0;
if(msgbase.open!=undefined && msgbase.open()==false) {
error(msgbase.last_error);
}
......@@ -90,6 +92,9 @@ if(template.hdr != null) {
}
}
if(msg.type!="plain" && sub=="mail")
template.txtbodybgwht=1;
var tmp=find_np_message(template.idx.offset,true);
template.temp=tmp
template.replyto=undefined;
......
......@@ -689,6 +689,23 @@ pre.leftalign {
font-size:9pt;
}
pre.leftalignwht {
background-color: white;
color: #000000;
text-align: left;
padding: 3px;
font-size:9pt;
}
.txtbodywht {
background-color: #ffffff;
}
.txtbody {
background-color: #000000;
}
/* Footer */
.footer {
......
......@@ -19,9 +19,7 @@
</tr>
<tr><td colspan="4"><hr width="90%" /></td></tr>
<tr>
<td bgcolor="Black" colspan="4">
<!-- <hr /> -->
<pre class="leftalign">@@body@@</pre>
@@JS:template.txtbodybgwht?'<td class="txtbodywht" colspan="4"><pre class="leftalignwht">':'<td class="txtbody" colspan="4"><pre class="leftalign">'@@@@body@@</pre>
<!-- <hr /> -->
</td>
</tr>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment