summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/jwebmail/templates/_main_table.html11
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">