mirror of
https://git.ari.lt/ari.lt/ari.lt.git
synced 2025-02-05 01:59:25 +01:00
format the email better
Signed-off-by: Ari Archer <ari@ari.lt>
This commit is contained in:
parent
daf14c136e
commit
b59f01dc6f
1 changed files with 10 additions and 7 deletions
|
@ -156,9 +156,10 @@ def comment():
|
||||||
f"Email confirmation for guestbook comment #{comment.id}",
|
f"Email confirmation for guestbook comment #{comment.id}",
|
||||||
f"""Hello!
|
f"""Hello!
|
||||||
|
|
||||||
Someone (or you) have commented on the https://ari.lt/ guestbook. If it was you, please confirm your email address below. Else - you may ignore it.
|
You (or someone) have commented on the {flask.request.url} guestbook. If it was you, please confirm your email address below. Otherwise - you may ignore this email
|
||||||
|
or delete the email by going to the URL linked below.
|
||||||
|
|
||||||
The comment is:
|
The comment content includes your email, as well as:
|
||||||
|
|
||||||
Name: {comment.name}
|
Name: {comment.name}
|
||||||
Website: {comment.website or "<none>"}
|
Website: {comment.website or "<none>"}
|
||||||
|
@ -168,15 +169,17 @@ Comment:
|
||||||
{comment.comment}
|
{comment.comment}
|
||||||
```
|
```
|
||||||
|
|
||||||
Visit the following URL to *confirm* your email:
|
Visit the following URL to *confirm* this email:
|
||||||
|
|
||||||
{flask.request.url.rstrip("/")}{flask.url_for("views.confirm", comment_id=comment.id, token=comment.token)}
|
{flask.request.url.rstrip("/")}{flask.url_for("views.confirm", comment_id=comment.id, token=comment.token)}
|
||||||
|
|
||||||
Or you may delete the comment:
|
Or you may delete this comment by going to:
|
||||||
|
|
||||||
{flask.request.url.rstrip("/")}{flask.url_for("views.delete", comment_id=comment.id, token=comment.token)}
|
{flask.request.url.rstrip("/")}{flask.url_for("views.delete", comment_id=comment.id, token=comment.token)}
|
||||||
|
|
||||||
If clicking doesn't work - try pasting it into your browser, or running `curl`/`wget`/`axel` on it :)""",
|
If clicking the URL does not work, try pasting it into your browser or running `curl`/`wget`/`axel` on it :)
|
||||||
|
|
||||||
|
Please do not reply to this email, if you have any questions - email ari@ari.lt""",
|
||||||
)
|
)
|
||||||
except Exception:
|
except Exception:
|
||||||
models.db.session.delete(comment)
|
models.db.session.delete(comment)
|
||||||
|
|
Loading…
Add table
Reference in a new issue