index.pug 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. extends ../layout
  2. block content
  3. .content.content-alt
  4. .container
  5. .row
  6. .col-xs-12
  7. .card
  8. .page-header
  9. h1 Admin Panel
  10. tabset(bookmarkable-tabset ng-cloak)
  11. tab(heading="System Messages" bookmarkable-tab="system-messages")
  12. each message in systemMessages
  13. .alert.alert-info.row-spaced(ng-non-bindable) #{message.content}
  14. hr
  15. form(method='post', action='/admin/messages')
  16. input(name="_csrf", type="hidden", value=csrfToken)
  17. .form-group
  18. label(for="content")
  19. input.form-control(name="content", type="text", placeholder="Message…", required)
  20. button.btn.btn-primary(type="submit") Post Message
  21. hr
  22. form(method='post', action='/admin/messages/clear')
  23. input(name="_csrf", type="hidden", value=csrfToken)
  24. button.btn.btn-danger(type="submit") Clear all messages
  25. tab(heading="Open Sockets" bookmarkable-tab="open-sockets")
  26. .row-spaced
  27. ul
  28. each agents, url in openSockets
  29. li(ng-non-bindable) #{url} - total : #{agents.length}
  30. ul
  31. each agent in agents
  32. li(ng-non-bindable) #{agent}
  33. tab(heading="Open/Close Editor" bookmarkable-tab="open-close-editor")
  34. if hasFeature('saas')
  35. | The "Open/Close Editor" feature is not available in SAAS.
  36. else
  37. .row-spaced
  38. form(method='post',action='/admin/closeEditor')
  39. input(name="_csrf", type="hidden", value=csrfToken)
  40. button.btn.btn-danger(type="submit") Close Editor
  41. p.small Will stop anyone opening the editor. Will NOT disconnect already connected users.
  42. .row-spaced
  43. form(method='post',action='/admin/disconnectAllUsers')
  44. input(name="_csrf", type="hidden", value=csrfToken)
  45. button.btn.btn-danger(type="submit") Disconnect all users
  46. p.small Will force disconnect all users with the editor open. Make sure to close the editor first to avoid them reconnecting.
  47. .row-spaced
  48. form(method='post',action='/admin/openEditor')
  49. input(name="_csrf", type="hidden", value=csrfToken)
  50. button.btn.btn-danger(type="submit") Reopen Editor
  51. p.small Will reopen the editor after closing.
  52. tab(heading="TPDS/Dropbox Management" bookmarkable-tab="tpds")
  53. h3 Flush project to TPDS
  54. .row
  55. form.col-xs-6(method='post',action='/admin/flushProjectToTpds')
  56. input(name="_csrf", type="hidden", value=csrfToken)
  57. .form-group
  58. label(for='project_id') project_id
  59. input.form-control(type='text', name='project_id', placeholder='project_id', required)
  60. .form-group
  61. button.btn-primary.btn(type='submit') Flush
  62. hr
  63. h3 Poll Dropbox for user
  64. .row
  65. form.col-xs-6(method='post',action='/admin/pollDropboxForUser')
  66. input(name="_csrf", type="hidden", value=csrfToken)
  67. .form-group
  68. label(for='user_id') user_id
  69. input.form-control(type='text', name='user_id', placeholder='user_id', required)
  70. .form-group
  71. button.btn-primary.btn(type='submit') Poll