Skip to content
Snippets Groups Projects
Commit 3fed3417 authored by echicken's avatar echicken :chicken:
Browse files

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

parent 939e06b8
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment