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
No related branches found
No related tags found
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-->
<?xjs
if (user.number == 0 || user.alias == settings.guest) exit();
load('sbbsdefs.js');
......@@ -18,20 +17,21 @@
<div class="checkbox">
<label class="checkbox-inline">
<input id="check-<? write(header.number); ?>" type="checkbox" class="mail-select">
<? write(header.attr&MSG_READ ? '' : '<span class="badge new">New</span>') ?>
</label>
</div>
</div>
<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); ?>:
<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;
<? } ?>
<? write(locale.strings.page_mail.label_message_date); ?>
<? write((new Date(header.when_written_time * 1000)).toLocaleString()); ?>
<p>
<? write(locale.strings.page_mail.label_message_subject); ?>:
<strong><? write(header.subject); ?></strong>
<strong><? write(header.subject); ?>!!!!</strong>
</p>
</div>
</div>
......
......@@ -17,6 +17,15 @@ a.unread {
background: #FFFFFF;
}
li.unread {
background: #88CAFF !important;
}
span.badge.new {
background: white;
color: #88CAFF;
}
/* A read mail message in the list view. */
a.read {
background: #E6E6E6;
......@@ -174,4 +183,4 @@ animation: indicator-fade 3s ease 0s 1 alternate !important;
.breadcrumb li {
display: inline;
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment