mirror of https://github.com/kf7eel/hbnet.git
update index template, update requirements
This commit is contained in:
parent
a5d9fb5d5c
commit
b60269b042
|
|
@ -10,4 +10,5 @@ requests
|
||||||
libscrc
|
libscrc
|
||||||
resettabletimer
|
resettabletimer
|
||||||
cryptography
|
cryptography
|
||||||
|
setproctitle
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,9 @@
|
||||||
|
|
||||||
{{content_block}}
|
{{content_block}}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="col-lg-6">
|
<div class="row">
|
||||||
|
|
||||||
<p> </p>
|
<p> </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> </p>
|
<p> </p>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue