Minor formating changes in e-mail layout

This commit is contained in:
Heiko Joerg Schick
2023-09-12 09:32:59 +02:00
parent 02ee89dcc5
commit d79b0b5b5e
+9 -9
View File
@@ -38,6 +38,7 @@ template = """
<style>
body {
font-family: Arial, sans-serif;
font-size: 14px;
}
.s {
font-weight: bold;
@@ -52,23 +53,21 @@ body {
margin-bottom: 10px;
}
.f {
color: #933;
color: #fb0007;
display: inline-block;
}
</style>
</head>
<body>
<br><br>
<div>Hi! Here are your <a href="https://arxiv.h3132.de">arxiv-sanity-lite</a> recommendations. __STATS__</div>
<br><br>
<div>Hi! Here are your <a href="https://arxiv.h3132.de">arxiv-sanity-lite</a> recommendations.</div>
<br>
<div>__STATS__</div>
<br>
<div>
__CONTENT__
</div>
<br><br>
<br>
<div>
To stop these emails remove your email in your <a href="https://arxiv.h3132.de/profile">account</a> settings. (your account is __ACCOUNT__).
</div>
@@ -167,8 +166,9 @@ def render_recommendations(user, tags, tag_pids, tag_scores):
<td valign="top"><div class="s">%.2f</div></td>
<td>
<a href="%s">%s</a> <div class="f">(%s)</div>
<div class="a">%s</div>
<div class="a"><br>%s</div><br>
<div class="u">%s</div>
<hr size="1">
</td>
</tr>
""" % (score, url, p['title'], max_source_tag[pid], authors, summary)