diff options
author | Jannis M. Hoffmann <jannis@fehcom.de> | 2024-04-10 16:05:25 +0200 |
---|---|---|
committer | Jannis M. Hoffmann <jannis@fehcom.de> | 2024-04-10 16:05:25 +0200 |
commit | 4d81a32530fa10ded10ae9abe12755f9d6d328ac (patch) | |
tree | 5ce14a6cfca91d84e5e9dca41085cb5bfcb6baf1 /src/jwebmail/templates/_main_table.html | |
parent | 90b11a4f11f6943c1d5f4f2219b6ecd92438e255 (diff) |
fix for missing Date header
Diffstat (limited to 'src/jwebmail/templates/_main_table.html')
-rw-r--r-- | src/jwebmail/templates/_main_table.html | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/jwebmail/templates/_main_table.html b/src/jwebmail/templates/_main_table.html index 29e8eee..35fdeec 100644 --- a/src/jwebmail/templates/_main_table.html +++ b/src/jwebmail/templates/_main_table.html @@ -10,11 +10,18 @@ <div class="media-content"> <div class="columns is-gapless is-multiline"> <div class="column is-10"> - {{ msg.head.sender.0.display_name or msg.head.sender.0.address or msg.head.from.0.display_name or msg.head.from.0.address }} + {{ msg.head.sender.0.display_name or + msg.head.sender.0.address or + msg.head.from.0.display_name or + msg.head.from.0.address }} </div> <div class="column is-2"> - {{ parse_iso_date(msg.head.date)|datetimeformat }} + {% if msg.head.date %} + {{ parse_iso_date(msg.head.date)|datetimeformat }} + {% else %} + {{ gettext("unknown") }} + {% endif %} </div> <div class="column is-10"> |