diff --git a/webv4/pages/000-mail.xjs b/webv4/pages/000-mail.xjs index a4c71fec2a331b5b66b1ff92a44978278b0ed524..a70a9b5a2cc2d7548e6283c2ecd4d16c7814f322 100644 --- a/webv4/pages/000-mail.xjs +++ b/webv4/pages/000-mail.xjs @@ -1,5 +1,4 @@ <!--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")) { ?> <<? write(_mail_tab == 'sent' ? (header.to + '@' + header.to_net_addr) : (header.from + '@' + header.from_net_addr)); ?>> <? } ?> <? 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> diff --git a/webv4/root/css/style.css b/webv4/root/css/style.css index 7751bb1a8ed1e4a3274afa526dca9a58a355e007..749a6a2c01d9074b4f7ae07db873573b43bb4338 100644 --- a/webv4/root/css/style.css +++ b/webv4/root/css/style.css @@ -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 +}