2015-03-19 10:22:48 -04:00
|
|
|
extends ../layout
|
2014-02-12 05:23:40 -05:00
|
|
|
|
|
|
|
block content
|
2014-07-24 06:22:22 -04:00
|
|
|
.content.content-alt
|
|
|
|
.container
|
2014-02-12 05:23:40 -05:00
|
|
|
.row
|
2014-07-24 06:22:22 -04:00
|
|
|
.col-xs-12
|
|
|
|
.card
|
|
|
|
.page-header
|
|
|
|
h1 Admin Panel
|
2021-03-30 07:13:02 -04:00
|
|
|
tabset(bookmarkable-tabset ng-cloak)
|
|
|
|
tab(heading="System Messages" bookmarkable-tab="system-messages")
|
2018-08-22 05:15:50 -04:00
|
|
|
each message in systemMessages
|
2019-03-18 06:24:54 -04:00
|
|
|
.alert.alert-info.row-spaced(ng-non-bindable) #{message.content}
|
2016-06-06 11:11:26 -04:00
|
|
|
hr
|
2019-03-07 10:29:26 -05:00
|
|
|
form(method='post', action='/admin/messages')
|
2016-06-06 11:11:26 -04:00
|
|
|
input(name="_csrf", type="hidden", value=csrfToken)
|
|
|
|
.form-group
|
|
|
|
label(for="content")
|
2020-04-22 05:35:33 -04:00
|
|
|
input.form-control(name="content", type="text", placeholder="Message…", required)
|
2016-06-06 11:11:26 -04:00
|
|
|
button.btn.btn-primary(type="submit") Post Message
|
|
|
|
hr
|
2019-03-07 10:29:26 -05:00
|
|
|
form(method='post', action='/admin/messages/clear')
|
2016-06-06 11:11:26 -04:00
|
|
|
input(name="_csrf", type="hidden", value=csrfToken)
|
|
|
|
button.btn.btn-danger(type="submit") Clear all messages
|
|
|
|
|
|
|
|
|
2021-03-30 07:13:02 -04:00
|
|
|
tab(heading="Open Sockets" bookmarkable-tab="open-sockets")
|
2014-07-24 06:22:22 -04:00
|
|
|
.row-spaced
|
2014-02-12 05:23:40 -05:00
|
|
|
ul
|
2017-01-31 09:57:22 -05:00
|
|
|
each agents, url in openSockets
|
2019-03-18 06:24:54 -04:00
|
|
|
li(ng-non-bindable) #{url} - total : #{agents.length}
|
2014-07-24 06:22:22 -04:00
|
|
|
ul
|
2017-01-31 09:57:22 -05:00
|
|
|
each agent in agents
|
2019-03-18 06:24:54 -04:00
|
|
|
li(ng-non-bindable) #{agent}
|
2016-06-06 11:11:26 -04:00
|
|
|
|
2021-03-30 07:13:02 -04:00
|
|
|
tab(heading="Open/Close Editor" bookmarkable-tab="open-close-editor")
|
2021-03-30 07:10:27 -04:00
|
|
|
if hasFeature('saas')
|
|
|
|
| The "Open/Close Editor" feature is not available in SAAS.
|
|
|
|
else
|
|
|
|
.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.
|
2019-09-04 07:28:45 -04:00
|
|
|
|
2021-03-30 07:10:27 -04:00
|
|
|
.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.
|
2019-09-04 07:28:45 -04:00
|
|
|
|
2021-03-30 07:10:27 -04:00
|
|
|
.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.
|
2021-02-22 10:01:48 -05:00
|
|
|
|
2021-03-30 07:13:02 -04:00
|
|
|
tab(heading="TPDS/Dropbox Management" bookmarkable-tab="tpds")
|
2014-07-24 06:22:22 -04:00
|
|
|
h3 Flush project to TPDS
|
|
|
|
.row
|
2019-03-07 10:29:26 -05:00
|
|
|
form.col-xs-6(method='post',action='/admin/flushProjectToTpds')
|
2014-07-24 06:22:22 -04:00
|
|
|
input(name="_csrf", type="hidden", value=csrfToken)
|
|
|
|
.form-group
|
2019-09-04 07:28:45 -04:00
|
|
|
label(for='project_id') project_id
|
2014-07-24 06:22:22 -04:00
|
|
|
input.form-control(type='text', name='project_id', placeholder='project_id', required)
|
|
|
|
.form-group
|
|
|
|
button.btn-primary.btn(type='submit') Flush
|
2014-08-14 05:12:01 -04:00
|
|
|
hr
|
|
|
|
h3 Poll Dropbox for user
|
|
|
|
.row
|
2019-03-07 10:29:26 -05:00
|
|
|
form.col-xs-6(method='post',action='/admin/pollDropboxForUser')
|
2014-08-14 05:12:01 -04:00
|
|
|
input(name="_csrf", type="hidden", value=csrfToken)
|
|
|
|
.form-group
|
2019-09-04 07:28:45 -04:00
|
|
|
label(for='user_id') user_id
|
2014-08-14 05:12:01 -04:00
|
|
|
input.form-control(type='text', name='user_id', placeholder='user_id', required)
|
|
|
|
.form-group
|
|
|
|
button.btn-primary.btn(type='submit') Poll
|
2021-06-16 04:14:18 -04:00
|
|
|
|
|
|
|
tab(heading="Advanced" bookmarkable-tab="advanced")
|
|
|
|
.row-spaced
|
|
|
|
form(method='post',action='/admin/unregisterServiceWorker')
|
|
|
|
input(name="_csrf", type="hidden", value=csrfToken)
|
|
|
|
button.btn.btn-danger(type="submit") Unregister service worker
|
|
|
|
p.small Will force service worker reload for all users with the editor open.
|