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
|
|
|
|
tabset(ng-cloak)
|
2016-06-06 11:11:26 -04:00
|
|
|
tab(heading="System Messages")
|
2018-08-22 05:15:50 -04:00
|
|
|
each message in systemMessages
|
|
|
|
.alert.alert-info.row-spaced #{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")
|
|
|
|
input.form-control(name="content", type="text", placeholder="Message...", required)
|
|
|
|
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
|
|
|
|
|
|
|
|
|
2014-07-24 06:22:22 -04:00
|
|
|
tab(heading="Open Sockets")
|
|
|
|
.row-spaced
|
2014-02-12 05:23:40 -05:00
|
|
|
ul
|
2017-01-31 09:57:22 -05:00
|
|
|
each agents, url in openSockets
|
2014-07-24 06:22:22 -04:00
|
|
|
li #{url} - total : #{agents.length}
|
|
|
|
ul
|
2017-01-31 09:57:22 -05:00
|
|
|
each agent in agents
|
2014-07-24 06:22:22 -04:00
|
|
|
li #{agent}
|
2016-06-06 11:11:26 -04:00
|
|
|
|
2014-07-24 06:22:22 -04:00
|
|
|
tab(heading="Close Editor")
|
|
|
|
.row-spaced
|
2019-03-07 10:29:26 -05:00
|
|
|
form(method='post',action='/admin/closeEditor')
|
2014-07-24 06:22:22 -04:00
|
|
|
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
|
2019-03-07 10:29:26 -05:00
|
|
|
form(method='post',action='/admin/dissconectAllUsers')
|
2014-07-24 06:22:22 -04:00
|
|
|
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.
|
|
|
|
|
|
|
|
tab(heading="Subscriptions")
|
|
|
|
h3 Link Recurly subscription to user
|
|
|
|
.row
|
2019-03-07 10:29:26 -05:00
|
|
|
form.form.col-xs-6(method='post',action='/admin/syncUserToSubscription')
|
2014-07-24 06:22:22 -04:00
|
|
|
input(name="_csrf", type="hidden", value=csrfToken)
|
|
|
|
.form-group
|
|
|
|
label(for='subscription_id') subscription_id (in Recurly)
|
|
|
|
input.form-control(type='text', name='subscription_id', placeholder='subscription_id', required)
|
|
|
|
.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') Link
|
|
|
|
|
2014-08-14 05:12:01 -04:00
|
|
|
tab(heading="TPDS/Dropbox Management")
|
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
|
|
|
|
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
|
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
|
|
|
|
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
|
2014-07-24 08:24:08 -04:00
|
|
|
|
2016-06-06 11:11:26 -04:00
|
|
|
|
2014-02-12 05:23:40 -05:00
|
|
|
|
|
|
|
|