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
|
||||
resettabletimer
|
||||
cryptography
|
||||
setproctitle
|
||||
|
||||
|
|
|
|||
|
|
@ -2698,7 +2698,7 @@ TG #: <strong> ''' + str(tg_d.tg) + '''</strong>
|
|||
elif request.args.get('delete_page'):
|
||||
show_form = False
|
||||
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')))
|
||||
content = '''<h3 style="text-align: center;">Deleted page.</h3>
|
||||
<p style="text-align: center;">Redirecting in 1 seconds.</p>
|
||||
|
|
|
|||
|
|
@ -7,8 +7,9 @@
|
|||
|
||||
{{content_block}}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6">
|
||||
<div class="row">
|
||||
|
||||
<p> </p>
|
||||
<table style="margin-left: auto; margin-right: auto;">
|
||||
|
|
@ -22,7 +23,6 @@
|
|||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p> </p>
|
||||
|
|
|
|||
Loading…
Reference in New Issue