2021-09-29 05:04:58 -04:00
|
|
|
extends ../layout-marketing
|
|
|
|
include ../_mixins/bookmarkable_tabset
|
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-09-29 05:04:58 -04:00
|
|
|
div(data-ol-bookmarkable-tabset)
|
|
|
|
ul.nav.nav-tabs(role="tablist")
|
|
|
|
+bookmarkable-tabset-header('system-messages', 'System Messages', true)
|
|
|
|
+bookmarkable-tabset-header('open-sockets', 'Open Sockets')
|
|
|
|
+bookmarkable-tabset-header('open-close-editor', 'Open/Close Editor')
|
|
|
|
if hasFeature('saas')
|
|
|
|
+bookmarkable-tabset-header('tpds', 'TPDS/Dropbox Management')
|
|
|
|
+bookmarkable-tabset-header('advanced', 'Advanced')
|
2016-06-06 11:11:26 -04:00
|
|
|
|
2021-09-29 05:04:58 -04:00
|
|
|
.tab-content
|
|
|
|
.tab-pane.active(
|
|
|
|
role="tabpanel"
|
|
|
|
id='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
|
2016-06-06 11:11:26 -04:00
|
|
|
|
2021-09-29 05:04:58 -04:00
|
|
|
.tab-pane(
|
|
|
|
role="tabpanel"
|
|
|
|
id='open-sockets'
|
|
|
|
)
|
2021-03-30 07:10:27 -04:00
|
|
|
.row-spaced
|
2021-09-29 05:04:58 -04:00
|
|
|
ul
|
|
|
|
each agents, url in openSockets
|
|
|
|
li(ng-non-bindable) #{url} - total : #{agents.length}
|
|
|
|
ul
|
|
|
|
each agent in agents
|
|
|
|
li(ng-non-bindable) #{agent}
|
2019-09-04 07:28:45 -04:00
|
|
|
|
2021-09-29 05:04:58 -04:00
|
|
|
.tab-pane(
|
|
|
|
role="tabpanel"
|
|
|
|
id='open-close-editor'
|
|
|
|
)
|
|
|
|
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-09-29 05:04:58 -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.
|
2021-02-22 10:01:48 -05:00
|
|
|
|
2021-09-29 05:04:58 -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.
|
|
|
|
|
|
|
|
if hasFeature('saas')
|
|
|
|
.tab-pane(
|
|
|
|
role="tabpanel"
|
|
|
|
id='tpds'
|
|
|
|
)
|
|
|
|
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
|
2021-06-16 04:14:18 -04:00
|
|
|
|
2021-09-29 05:04:58 -04:00
|
|
|
.tab-pane(
|
|
|
|
role="tabpanel"
|
|
|
|
id='advanced'
|
|
|
|
)
|
2021-06-16 04:14:18 -04:00
|
|
|
.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.
|