2014-02-12 05:23:40 -05:00
|
|
|
extends layout
|
|
|
|
|
|
|
|
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)
|
|
|
|
tab(heading="Open Sockets")
|
|
|
|
.row-spaced
|
2014-02-12 05:23:40 -05:00
|
|
|
ul
|
2014-07-24 06:22:22 -04:00
|
|
|
-each agents, url in openSockets
|
|
|
|
li #{url} - total : #{agents.length}
|
|
|
|
ul
|
|
|
|
-each agent in agents
|
|
|
|
li #{agent}
|
|
|
|
|
|
|
|
tab(heading="Close Editor")
|
|
|
|
.row-spaced
|
|
|
|
form(enctype='multipart/form-data', 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(enctype='multipart/form-data', method='post',action='/admin/dissconectAllUsers')
|
|
|
|
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
|
|
|
|
form.form.col-xs-6(enctype='multipart/form-data', method='post',action='/admin/syncUserToSubscription')
|
|
|
|
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
|
|
|
|
|
|
|
|
tab(heading="TPDS Management")
|
|
|
|
h3 Flush project to TPDS
|
|
|
|
.row
|
|
|
|
form.col-xs-6(enctype='multipart/form-data', 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
|
|
|
|
.row-spaced
|
|
|
|
form(enctype='multipart/form-data', method='post',action='/admin/pollUsersWithDropbox')
|
|
|
|
input(name="_csrf", type="hidden", value=csrfToken)
|
|
|
|
button.btn.btn-primary(type="submit") Poll users with dropbox
|
2014-02-12 05:23:40 -05:00
|
|
|
|
|
|
|
|