Fixes for message list pushed.

This commit is contained in:
Michael Woods
2025-12-24 20:42:43 -05:00
parent f59c9a36e3
commit c3edbb6d64
3 changed files with 21 additions and 47 deletions

View File

@@ -12,21 +12,21 @@
</div>
{% if messages %}
<ul class="message-list">
<ul class="message-list">
{% for msg in messages %}
<li>
<strong><a href="/dashboard/message/{{ msg.id }}">{{ msg.subject }}</a></strong>
<span class="meta">
From: {{ msg.from }} | To: {{ msg.to }} | {{ msg.sent_at[:10] }} {{ msg.sent_at[11:19] }}
{% if not msg.retrieved %}<span class="text-warning"> (Unread)</span>{% endif %}
{% if msg.has_attachments %}<span class="text-info"> (Attachments)</span>{% endif %}
</span>
<div class="preview">{{ msg.text_preview }}</div>
</li>
<li>
<strong><a href="/dashboard/message/{{ msg.id }}">{{ msg.text[:60] }}{% if msg.text|length > 60 %}...{% endif %}</a></strong>
{% if msg.has_attachments %}<span class="text-info"> (Attachments)</span>{% endif %}
{% if not msg.retrieved %}<span class="text-warning"> (Unread)</span>{% endif %}
<span class="meta">
From: {{ msg.from }} | To: {{ msg.to | join(', ') }} | {{ msg.sent_at[:10] }} {{ msg.sent_at[11:19] }}
</span>
<div class="preview">{{ msg.text[:200] }}{% if msg.text|length > 200 %}...{% endif %}</div>
</li>
{% endfor %}
</ul>
</ul>
{% else %}
<p>No messages found.</p>
<p>No messages found.</p>
{% endif %}
<p><a href="/dashboard">← Back to Dashboard</a></p>