Minor formating changes in e-mail layout
This commit is contained in:
+9
-9
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user