summaryrefslogtreecommitdiff
path: root/src/jwebmail/templates/_main_table.html
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis@fehcom.de>2023-12-03 19:22:12 +0100
committerJannis M. Hoffmann <jannis@fehcom.de>2023-12-03 19:22:12 +0100
commit2cf2a68bd1c25d8fe4f3126f40bd57982cc6b2a4 (patch)
treeb5c8ed0e1cfe8eac311829296a9aca062bb1abc1 /src/jwebmail/templates/_main_table.html
initial commit
Diffstat (limited to 'src/jwebmail/templates/_main_table.html')
-rw-r--r--src/jwebmail/templates/_main_table.html37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/jwebmail/templates/_main_table.html b/src/jwebmail/templates/_main_table.html
new file mode 100644
index 0000000..02f9f81
--- /dev/null
+++ b/src/jwebmail/templates/_main_table.html
@@ -0,0 +1,37 @@
+<section class="box">
+
+ {% for msg in msgs %}
+
+ <tag class="media {{ jwm-new-mail if msg.unread else '' }}" id="{{ msg.message_handle }}">
+ <div class="media-left is-hidden-mobile">
+ {{ loop.index + (pgn.page - 1) * pgn.per_page }}
+ </div>
+
+ <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 }}
+ </div>
+
+ <div class="column is-2">
+ {{ parse_iso_date(msg.head.date)|datetimeformat }}
+ </div>
+
+ <div class="column is-10">
+ <a href="{{ url_for('read', msgid=msg.message_handle) }}">{{ msg.head.subject or '_' }}</a>
+ </div>
+
+ <div class="column is-2">
+ {{ msg.byte_size|byte_size10 }}
+ </div>
+ </div>
+ </div>
+
+ <div class=media-right>
+ <input type="checkbox" name="{{ msg.message_handle }}" form="move-mail remove-mail" class="jwm-mail-checkbox">
+ </div>
+ </tag>
+
+ {% endfor %}
+
+</section>