combine sounds and plato deals, use jinja for email
This commit is contained in:
21
apps/vinyl/email.html
Normal file
21
apps/vinyl/email.html
Normal file
@@ -0,0 +1,21 @@
|
||||
<div style="font-family: Arial, sans-serif; padding: 20px;">
|
||||
<h2 style="color: #333;">🎶 New Deals</h2>
|
||||
|
||||
{% for source, rows in deals.items() %}
|
||||
<h2>{{ source|capitalize }}</h2>
|
||||
|
||||
{% for row in rows %}
|
||||
<div style="margin-bottom: 10px; padding: 10px 15px; font-size: 0.95rem;">
|
||||
<a href="{{ row.url }}" style="text-decoration: none; color: #1a73e8;">
|
||||
<h3 style="margin: 0 0 10px;">🆕 {{ row.artist|title }} - {{ row.title|title }}</h3>
|
||||
</a>
|
||||
<ul style="list-style: none; padding-left: 0; margin: 0;">
|
||||
<li><strong>Artist:</strong> {{ row.artist|title }}</li>
|
||||
<li><strong>Title:</strong> {{ row.title|title }}</li>
|
||||
<li><strong>Price:</strong> €{{ "%.2f"|format(row.price) }}</li>
|
||||
<li><strong>Release Date:</strong> {{ row.release }}</li>
|
||||
</ul>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
Reference in New Issue
Block a user