Skip to content
This repository has been archived by the owner on Jan 28, 2021. It is now read-only.

Commit

Permalink
Reverse the to/from display choice for the mail folders
Browse files Browse the repository at this point in the history
We want to display the *from* field for messages in the Inbox and Spam
tabs and we want to display the *to* field for messages in the Sent
tab. I'm prettty sure. :-)
  • Loading branch information
rswindell committed Jan 27, 2019
1 parent 92d81ff commit 99156f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/pages/.examples/000-mail.xjs
Expand Up @@ -22,8 +22,8 @@
</div>
</div>
<div class="col-sm-11" style="cursor:pointer;" onclick="getMailBody(<?xjs write(header.number); ?>)">
<?xjs write(_mail_tab == 'sent' ? locale.strings.page_mail.label_message_from : locale.strings.page_mail.label_message_to); ?>:
<strong><?xjs write(_mail_tab == 'sent' ? header.from : header.to); ?></strong>
<?xjs write(_mail_tab == 'sent' ? locale.strings.page_mail.label_message_to : locale.strings.page_mail.label_message_from); ?>:
<strong><?xjs write(_mail_tab == 'sent' ? header.to : header.from); ?></strong>
<?xjs write(locale.strings.page_mail.label_message_date); ?>
<?xjs write((new Date(header.when_written_time * 1000)).toLocaleString()); ?>
<p>
Expand Down

0 comments on commit 99156f7

Please sign in to comment.