weather
This commit is contained in:
@@ -40,6 +40,39 @@
|
||||
<p style="margin: 15px 0 0 0; font-size: 15px; line-height: 1.6; color: #666666; text-align: justify;">
|
||||
Here's what's happening in Munich today. We've summarized {{ article_count }} stories using AI so you can stay informed in under 5 minutes.
|
||||
</p>
|
||||
|
||||
{% if weather and weather.success %}
|
||||
<!-- Weather Widget -->
|
||||
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="margin-top: 20px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 12px; overflow: hidden;">
|
||||
<tr>
|
||||
<td style="padding: 20px;">
|
||||
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td style="width: 60%; vertical-align: middle;">
|
||||
<p style="margin: 0 0 5px 0; font-size: 13px; color: rgba(255,255,255,0.9); font-weight: 600;">
|
||||
TODAY'S WEATHER
|
||||
</p>
|
||||
<p style="margin: 0; font-size: 32px; color: #ffffff; font-weight: 700; line-height: 1;">
|
||||
{{ weather.icon }} {{ weather.temperature }}°C
|
||||
</p>
|
||||
<p style="margin: 5px 0 0 0; font-size: 14px; color: rgba(255,255,255,0.9);">
|
||||
{{ weather.condition }}
|
||||
</p>
|
||||
</td>
|
||||
<td style="width: 40%; text-align: right; vertical-align: middle;">
|
||||
<p style="margin: 0; font-size: 14px; color: rgba(255,255,255,0.9);">
|
||||
High: <strong style="color: #ffffff;">{{ weather.high }}°C</strong>
|
||||
</p>
|
||||
<p style="margin: 5px 0 0 0; font-size: 14px; color: rgba(255,255,255,0.9);">
|
||||
Low: <strong style="color: #ffffff;">{{ weather.low }}°C</strong>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -256,6 +289,36 @@
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- TL;DR Section -->
|
||||
<tr>
|
||||
<td style="padding: 30px 40px;">
|
||||
<h2 style="margin: 0 0 20px 0; font-size: 22px; font-weight: 700; color: #1a1a1a;">
|
||||
📋 TL;DR - Quick Summary
|
||||
</h2>
|
||||
<p style="margin: 0 0 15px 0; font-size: 14px; color: #666666;">
|
||||
Here's everything in one sentence each:
|
||||
</p>
|
||||
|
||||
{% set all_articles = (trending_articles or []) + (other_articles or []) %}
|
||||
{% for article in all_articles %}
|
||||
<div style="margin-bottom: 12px; padding-left: 20px; position: relative;">
|
||||
<span style="position: absolute; left: 0; top: 0; color: #667eea; font-weight: 700;">{{ loop.index }}.</span>
|
||||
<p style="margin: 0; font-size: 14px; line-height: 1.5; color: #333333;">
|
||||
<strong>{{ article.title_en if article.title_en else article.title }}</strong> —
|
||||
{{ article.summary.split('.')[0] }}.
|
||||
</p>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- Divider -->
|
||||
<tr>
|
||||
<td style="padding: 0 40px;">
|
||||
<div style="height: 1px; background-color: #e0e0e0;"></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- Summary Box -->
|
||||
<tr>
|
||||
<td style="padding: 30px 40px;">
|
||||
|
||||
Reference in New Issue
Block a user