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