generated from nathanwoodburn/python-webserver-template
feat: Add initial code
All checks were successful
Build Docker / BuildImage (push) Successful in 54s
All checks were successful
Build Docker / BuildImage (push) Successful in 54s
This commit is contained in:
37
templates/inbox.html
Normal file
37
templates/inbox.html
Normal file
@@ -0,0 +1,37 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Inbox | HNS Login Email</title>
|
||||
<link rel="icon" href="/assets/img/favicon.png" type="image/png">
|
||||
<link rel="stylesheet" href="/assets/css/index.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header style="display: inline;">
|
||||
<h1>HNS Login Email</h1> <span style="float:right">{{emails.email}} | <a href="/notifications">Notifications</a> | <a href="/logout">Logout</a></span>
|
||||
</header>
|
||||
|
||||
<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="body">{{message.body|safe}}</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
<a class="button" href="/delete/{{conversation.id}}">Delete Conversation</a>
|
||||
</div>
|
||||
|
||||
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user