update index template, update requirements

This commit is contained in:
KF7EEL 2021-10-29 17:54:46 -07:00
parent a5d9fb5d5c
commit b60269b042
3 changed files with 4 additions and 3 deletions

View File

@ -10,4 +10,5 @@ requests
libscrc libscrc
resettabletimer resettabletimer
cryptography cryptography
setproctitle

View File

@ -2698,7 +2698,7 @@ TG #: <strong> ''' + str(tg_d.tg) + '''</strong>
elif request.args.get('delete_page'): elif request.args.get('delete_page'):
show_form = False show_form = False
tpd = TinyPage.query.filter_by(id=int(request.args.get('delete_page'))).first() tpd = TinyPage.query.filter_by(id=int(request.args.get('delete_page'))).first()
if str(current_user.username).upper() == str(tpd.author).upper(): if str(current_user.username).upper() == str(tpd.author).upper() or current_user.has_roles('Admin'):
tp_del(int(request.args.get('delete_page'))) tp_del(int(request.args.get('delete_page')))
content = '''<h3 style="text-align: center;">Deleted page.</h3> content = '''<h3 style="text-align: center;">Deleted page.</h3>
<p style="text-align: center;">Redirecting in 1 seconds.</p> <p style="text-align: center;">Redirecting in 1 seconds.</p>

View File

@ -7,8 +7,9 @@
{{content_block}} {{content_block}}
</div>
<div class="col-lg-6"> <div class="row">
<p>&nbsp;</p> <p>&nbsp;</p>
<table style="margin-left: auto; margin-right: auto;"> <table style="margin-left: auto; margin-right: auto;">
@ -22,7 +23,6 @@
</tbody> </tbody>
</table> </table>
</div>
</div> </div>
<p>&nbsp;</p> <p>&nbsp;</p>