初始提交

This commit is contained in:
huangzhenpc
2025-03-05 10:42:37 +08:00
parent 14c7e6d7f9
commit ce5785c481
9 changed files with 545 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html>
<head>
<title>邮件详情</title>
<style>
body { font-family: Arial, sans-serif; margin: 20px; }
.email-container {
max-width: 800px;
margin: 0 auto;
}
.email-header {
border-bottom: 1px solid #ddd;
padding-bottom: 10px;
margin-bottom: 20px;
}
.email-meta { color: #666; margin: 5px 0; }
.email-content {
white-space: pre-wrap;
padding: 20px;
background: #f9f9f9;
border-radius: 4px;
}
.back-link {
display: inline-block;
margin-bottom: 20px;
color: #0066cc;
text-decoration: none;
}
</style>
</head>
<body>
<div class="email-container">
<a href="{{ url_for('list_emails') }}" class="back-link">← 返回列表</a>
<div class="email-header">
<h2>{{ email.subject }}</h2>
<div class="email-meta">发件人: {{ email.sender }}</div>
<div class="email-meta">收件人: {{ email.recipient }}</div>
<div class="email-meta">时间: {{ email.timestamp }}</div>
</div>
<div class="email-content">{{ email.content }}</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,37 @@
<!DOCTYPE html>
<html>
<head>
<title>邮件列表</title>
<style>
body { font-family: Arial, sans-serif; margin: 20px; }
.email-list { list-style: none; padding: 0; }
.email-item {
border: 1px solid #ddd;
margin: 10px 0;
padding: 10px;
border-radius: 4px;
}
.email-item:hover { background-color: #f5f5f5; }
.email-subject { font-weight: bold; }
.email-meta { color: #666; font-size: 0.9em; }
a { text-decoration: none; color: inherit; }
</style>
</head>
<body>
<h1>邮件列表</h1>
<ul class="email-list">
{% for email in emails %}
<li class="email-item">
<a href="{{ url_for('view_email', email_id=email.id) }}">
<div class="email-subject">{{ email.subject }}</div>
<div class="email-meta">
发件人: {{ email.sender }} |
收件人: {{ email.recipient }} |
时间: {{ email.timestamp }}
</div>
</a>
</li>
{% endfor %}
</ul>
</body>
</html>