...
 
Commits (1)
  • echicken's avatar
    For local mail, to/from_net_type may be 0 or undefined as per · 7203eb80
    echicken authored
    Synchronet's whims. Check for falsiness instead of NET_NONE.
    
    Just display to/from_net_addr without prefixing with to + @. Not
    sure why I was doing this, but if there was a reason, I'll need
    to make an per-net-type address formatting thing.
    7203eb80
......@@ -25,8 +25,8 @@
<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) { ?>
&lt;<? write(_mail_tab == 'sent' ? (header.to + '@' + header.to_net_addr) : (header.from + '@' + header.from_net_addr)); ?>&gt;
<? if (_mail_tab == 'sent' ? header.to_net_type : header.from_net_type) { ?>
&lt;<? write(_mail_tab == 'sent' ? header.to_net_addr : header.from_net_addr); ?>&gt;
<? } ?>
<? write(locale.strings.page_mail.label_message_date); ?>
<? write((new Date(header.when_written_time * 1000)).toLocaleString()); ?>
......