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 3fed3417 authored by echicken's avatar echicken 🐔

Nobody cares how many read messages they have, nor 'unread' sent messages.

parent 939e06b8
......@@ -41,14 +41,8 @@
<? } ?>
<?xjs
function _read_unread(tab) {
write('(');
if (_mail[tab].unread) {
write('<strong>' + _mail[tab].unread + '</strong>');
} else {
write(_mail[tab].unread);
}
write('/' + _mail[tab].read + ')');
function _unread(tab) {
if (_mail[tab].unread) write('(<strong>' + _mail[tab].unread + '</strong>)');
}
?>
......@@ -101,19 +95,18 @@
<li role="presentation" class="<? write(_active_tab('inbox')); ?>">
<a href="./?page=<? write(page); ?>&amp;tab=inbox">
<? write(locale.strings.page_mail.label_tab_inbox); ?>
<? _read_unread('inbox'); ?>
<? _unread('inbox'); ?>
</a>
</li>
<li role="presentation" class="<? write(_active_tab('spam')); ?>">
<a href="./?page=<? write(page); ?>&amp;tab=spam">
Spam
<? _read_unread('spam'); ?>
<? _unread('spam'); ?>
</a>
</li>
<li role="presentation" class="<? write(_active_tab('sent')); ?>">
<a href="./?page=<? write(page); ?>&amp;tab=sent">
<? write(locale.strings.page_mail.label_tab_sent); ?>
<? _read_unread('sent'); ?>
</a>
</li>
</ul>
......
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