Skip to content
Snippets Groups Projects
Commit 79c4aa48 authored by Michael Long's avatar Michael Long
Browse files

make unread emails more obvious on the mail index page

parent 1c2d9c5e
Branches
Tags
2 merge requests!463MRC mods by Codefenix (2024-10-20),!61make unread emails more obvious on the mail index page by adding badge
Pipeline #977 passed
<!--HIDDEN:Mail--> <!--HIDDEN:Mail-->
<?xjs <?xjs
if (user.number == 0 || user.alias == settings.guest) exit(); if (user.number == 0 || user.alias == settings.guest) exit();
load('sbbsdefs.js'); load('sbbsdefs.js');
...@@ -18,20 +17,21 @@ ...@@ -18,20 +17,21 @@
<div class="checkbox"> <div class="checkbox">
<label class="checkbox-inline"> <label class="checkbox-inline">
<input id="check-<? write(header.number); ?>" type="checkbox" class="mail-select"> <input id="check-<? write(header.number); ?>" type="checkbox" class="mail-select">
<? write(header.attr&MSG_READ ? '' : '<span class="badge new">New</span>') ?>
</label> </label>
</div> </div>
</div> </div>
<div class="col-sm-11" style="cursor:pointer;" onclick="getMailBody(<? write(header.number); ?>)"> <div class="col-sm-11" style="cursor:pointer;" onclick="getMailBody(<? write(header.number); ?>)">
<? write(_mail_tab == 'sent' ? locale.strings.page_mail.label_message_to : locale.strings.page_mail.label_message_from); ?>: <? write(_mail_tab == 'sent' ? locale.strings.page_mail.label_message_to : locale.strings.page_mail.label_message_from); ?>:
<strong><? write(_mail_tab == 'sent' ? header.to : header.from); ?></strong> <strong><? write(_mail_tab == 'sent' ? header.to : header.from); ?></strong>
<? if (header.from_net_type != NET_NONE) { ?> <? if ((header.from_net_type != NET_NONE) && (typeof header.from_net_type !== "undefined")) { ?>
&lt;<? write(_mail_tab == 'sent' ? (header.to + '@' + header.to_net_addr) : (header.from + '@' + header.from_net_addr)); ?>&gt; &lt;<? write(_mail_tab == 'sent' ? (header.to + '@' + header.to_net_addr) : (header.from + '@' + header.from_net_addr)); ?>&gt;
<? } ?> <? } ?>
<? write(locale.strings.page_mail.label_message_date); ?> <? write(locale.strings.page_mail.label_message_date); ?>
<? write((new Date(header.when_written_time * 1000)).toLocaleString()); ?> <? write((new Date(header.when_written_time * 1000)).toLocaleString()); ?>
<p> <p>
<? write(locale.strings.page_mail.label_message_subject); ?>: <? write(locale.strings.page_mail.label_message_subject); ?>:
<strong><? write(header.subject); ?></strong> <strong><? write(header.subject); ?>!!!!</strong>
</p> </p>
</div> </div>
</div> </div>
......
...@@ -17,6 +17,15 @@ a.unread { ...@@ -17,6 +17,15 @@ a.unread {
background: #FFFFFF; background: #FFFFFF;
} }
li.unread {
background: #88CAFF !important;
}
span.badge.new {
background: white;
color: #88CAFF;
}
/* A read mail message in the list view. */ /* A read mail message in the list view. */
a.read { a.read {
background: #E6E6E6; background: #E6E6E6;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment