1
0
Fork 0
mirror of https://github.com/Lynnesbian/FediBooks/ synced 2024-11-25 08:38:59 +00:00

add success template

This commit is contained in:
Lynne Megido 2019-09-09 22:09:23 +10:00
parent eb3fb77c18
commit 9d6615b579
2 changed files with 6 additions and 1 deletions

View file

@ -122,6 +122,6 @@ def make_post(handle):
post = re.sub(r"@(\w+)@([\w.]+)", r"@{}\1".format(zws), post) post = re.sub(r"@(\w+)@([\w.]+)", r"@{}\1".format(zws), post)
print(post) print(post)
# client.status_post(post, visibility = bot['post_privacy'], spoiler_text = bot['content_warning']) client.status_post(post, visibility = bot['post_privacy'], spoiler_text = bot['content_warning'])
# TODO: update date of last post # TODO: update date of last post

5
templates/success.html Normal file
View file

@ -0,0 +1,5 @@
{% if success != None %}
<div class="success">
<i class="fas fa-check-circle"></i> Information updated succesfully.
</div>
{% endif %}