Minor formating changes in e-mail layout
This commit is contained in:
+9
-9
@@ -38,6 +38,7 @@ template = """
|
|||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
font-family: Arial, sans-serif;
|
font-family: Arial, sans-serif;
|
||||||
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
.s {
|
.s {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
@@ -52,23 +53,21 @@ body {
|
|||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
.f {
|
.f {
|
||||||
color: #933;
|
color: #fb0007;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
<div>Hi! Here are your <a href="https://arxiv.h3132.de">arxiv-sanity-lite</a> recommendations.</div>
|
||||||
<br><br>
|
<br>
|
||||||
<div>Hi! Here are your <a href="https://arxiv.h3132.de">arxiv-sanity-lite</a> recommendations. __STATS__</div>
|
<div>__STATS__</div>
|
||||||
<br><br>
|
<br>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
__CONTENT__
|
__CONTENT__
|
||||||
</div>
|
</div>
|
||||||
|
<br>
|
||||||
<br><br>
|
|
||||||
<div>
|
<div>
|
||||||
To stop these emails remove your email in your <a href="https://arxiv.h3132.de/profile">account</a> settings. (your account is __ACCOUNT__).
|
To stop these emails remove your email in your <a href="https://arxiv.h3132.de/profile">account</a> settings. (your account is __ACCOUNT__).
|
||||||
</div>
|
</div>
|
||||||
@@ -167,8 +166,9 @@ def render_recommendations(user, tags, tag_pids, tag_scores):
|
|||||||
<td valign="top"><div class="s">%.2f</div></td>
|
<td valign="top"><div class="s">%.2f</div></td>
|
||||||
<td>
|
<td>
|
||||||
<a href="%s">%s</a> <div class="f">(%s)</div>
|
<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>
|
<div class="u">%s</div>
|
||||||
|
<hr size="1">
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
""" % (score, url, p['title'], max_source_tag[pid], authors, summary)
|
""" % (score, url, p['title'], max_source_tag[pid], authors, summary)
|
||||||
|
|||||||
Reference in New Issue
Block a user