mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 11:34:15 -05:00
bc4f5a687a
check maintenance file periodically to close site GitOrigin-RevId: 8e29f40a23df96198c6e4603ede2bab852b98740
75 lines
2.9 KiB
Text
75 lines
2.9 KiB
Text
extends ../layout
|
|
|
|
block content
|
|
.content.content-alt
|
|
.container
|
|
.row
|
|
.col-xs-12
|
|
.card
|
|
.page-header
|
|
h1 Admin Panel
|
|
tabset(ng-cloak)
|
|
tab(heading="System Messages")
|
|
each message in systemMessages
|
|
.alert.alert-info.row-spaced(ng-non-bindable) #{message.content}
|
|
hr
|
|
form(method='post', action='/admin/messages')
|
|
input(name="_csrf", type="hidden", value=csrfToken)
|
|
.form-group
|
|
label(for="content")
|
|
input.form-control(name="content", type="text", placeholder="Message…", required)
|
|
button.btn.btn-primary(type="submit") Post Message
|
|
hr
|
|
form(method='post', action='/admin/messages/clear')
|
|
input(name="_csrf", type="hidden", value=csrfToken)
|
|
button.btn.btn-danger(type="submit") Clear all messages
|
|
|
|
|
|
tab(heading="Open Sockets")
|
|
.row-spaced
|
|
ul
|
|
each agents, url in openSockets
|
|
li(ng-non-bindable) #{url} - total : #{agents.length}
|
|
ul
|
|
each agent in agents
|
|
li(ng-non-bindable) #{agent}
|
|
|
|
tab(heading="Open/Close Editor")
|
|
.row-spaced
|
|
form(method='post',action='/admin/closeEditor')
|
|
input(name="_csrf", type="hidden", value=csrfToken)
|
|
button.btn.btn-danger(type="submit") Close Editor
|
|
p.small Will stop anyone opening the editor. Will NOT disconnect already connected users.
|
|
|
|
.row-spaced
|
|
form(method='post',action='/admin/disconnectAllUsers')
|
|
input(name="_csrf", type="hidden", value=csrfToken)
|
|
button.btn.btn-danger(type="submit") Disconnect all users
|
|
p.small Will force disconnect all users with the editor open. Make sure to close the editor first to avoid them reconnecting.
|
|
|
|
.row-spaced
|
|
form(method='post',action='/admin/openEditor')
|
|
input(name="_csrf", type="hidden", value=csrfToken)
|
|
button.btn.btn-danger(type="submit") Reopen Editor
|
|
p.small Will reopen the editor after closing.
|
|
|
|
tab(heading="TPDS/Dropbox Management")
|
|
h3 Flush project to TPDS
|
|
.row
|
|
form.col-xs-6(method='post',action='/admin/flushProjectToTpds')
|
|
input(name="_csrf", type="hidden", value=csrfToken)
|
|
.form-group
|
|
label(for='project_id') project_id
|
|
input.form-control(type='text', name='project_id', placeholder='project_id', required)
|
|
.form-group
|
|
button.btn-primary.btn(type='submit') Flush
|
|
hr
|
|
h3 Poll Dropbox for user
|
|
.row
|
|
form.col-xs-6(method='post',action='/admin/pollDropboxForUser')
|
|
input(name="_csrf", type="hidden", value=csrfToken)
|
|
.form-group
|
|
label(for='user_id') user_id
|
|
input.form-control(type='text', name='user_id', placeholder='user_id', required)
|
|
.form-group
|
|
button.btn-primary.btn(type='submit') Poll
|