fix: Add refresh button to bypass cache
All checks were successful
Build Docker / BuildImage (push) Successful in 37s

This commit is contained in:
2024-10-04 21:36:31 +10:00
parent ed5595c79c
commit 0ce3f9c629
2 changed files with 37 additions and 10 deletions

View File

@@ -12,16 +12,21 @@
<body>
<header style="display: inline;">
<img src="/favicon.png" style="width:50px;height:50px;">
<h1>HNS Email</h1> <span style="float:right">{{emails.email}} | <a href="/notifications">Notifications</a> | <a href="/logout">Logout</a></span>
<h1>HNS Email</h1> <span style="float:right">{{emails.email}} | <a href="/notifications">Notifications</a> | <a
href="/logout">Logout</a></span>
</header>
<br>
<a href="/refresh" class="button" style="float: right;">Refresh</a>
<div class="centre">
{% for conversation in emails.conversations %}
<div class="conversation">
<span>Conversation: {{conversation.id}}</span>
{% for message in conversation.messages %}
<div class="email">
<div class="from">{{message.name}} ({{message.from}})</div> <div class="date">{{message.date}}</div>
<div class="from">{{message.name}} ({{message.from}})</div>
<div class="date">{{message.date}}</div>
<div class="subject">{{message.subject}}</div>
<div class="body">{{message.body|safe}}</div>
</div>
{% endfor %}