You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

130 lines
5.2 KiB

3 years ago
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title data-l10n-id="ep_adminpads2_title">Pad administration</title>
  5. <meta name="viewport" content="width=device-width">
  6. <link rel="stylesheet" href="../static/css/admin.css">
  7. <style type="text/css">
  8. #search-results {margin: 1.5em 0;}
  9. #pad-widget {display: none;}
  10. #results-table {margin: 0;}
  11. #results-table .padname {text-align: left;}
  12. #results-table .last-edited {text-align: center; width: 1%; white-space: nowrap;}
  13. #results-table .user-count {text-align: right; width: 1%; white-space: nowrap;}
  14. #results-table .actions {text-align: center; width: 1%; white-space: nowrap;}
  15. #loading, #no-results {font-style: italic;}
  16. #no-results {display: none;}
  17. #error {
  18. display: none;
  19. border-style: solid;
  20. border-width: 0.2em;
  21. border-color: #900;
  22. }
  23. #error > * {
  24. padding-left: 1em;
  25. padding-right: 1em;
  26. padding-top: 0.4em;
  27. padding-bottom: 0.4em;
  28. }
  29. #error-title {
  30. color: #fff;
  31. background-color: #900;
  32. font-weight: bold;
  33. }
  34. #error-message {
  35. background-color: #ddd;
  36. padding-left: 1em;
  37. padding-right: 1em;
  38. padding-top: 0.4em;
  39. padding-bottom: 0.4em;
  40. border-left-style: solid;
  41. border-left-width: 0.4em;
  42. border-left-color: #888;
  43. overflow-x: auto;
  44. white-space: pre;
  45. font-family: monospace;
  46. display: inline-block;
  47. }
  48. #error-message-scrollbox {
  49. overflow-x: auto;
  50. }
  51. </style>
  52. <script src="../static/js/jquery.js"></script>
  53. <script src="../socket.io/socket.io.js"></script>
  54. <link rel="localizations" type="application/l10n+json" href="../locales.json" />
  55. <script src="../static/js/html10n.js"></script>
  56. <script src="../static/js/l10n.js"></script>
  57. <script src="../static/plugins/ep_adminpads2/static/js/admin/pads.js"></script>
  58. </head>
  59. <body>
  60. <div id="wrapper">
  61. <% if (errors.length) { %>
  62. <div class="errors">
  63. <% errors.forEach(function (item) { %>
  64. <div class="error"><%= item.toString() %></div>
  65. <% }) %>
  66. </div>
  67. <% } %>
  68. <div class="menu">
  69. <h1><a href="../../">Etherpad</a></h1>
  70. <ul>
  71. <% e.begin_block("adminMenu"); %>
  72. <li><a href="plugins" data-l10n-id="admin_plugins">Plugin manager</a></li>
  73. <li><a href="settings" data-l10n-id="admin_settings">Settings</a></li>
  74. <li><a href="plugins/info" data-l10n-id="admin_plugins_info">Troubleshooting information</a></li>
  75. <% e.end_block(); %>
  76. </ul>
  77. </div>
  78. <div class="innerwrapper">
  79. <div class="paged listing">
  80. <h2 data-l10n-id="ep_adminpads2_search-heading">Search for pads</h2>
  81. <form name="search-form" id="search-form">
  82. <input type="text" name="search" placeholder="Search term" id="search-query" data-l10n-id="ep_adminpads2_search-box.placeholder">
  83. <input type="button" value="Search" id="do-search" data-l10n-id="ep_adminpads2_search-button.value">
  84. </form>
  85. <input type="checkbox" name="autoupdate" id="results-autoupdate" title="Enables or disables automatic updates for the current query." data-l10n-id="ep_adminpads2_autoupdate.title">
  86. <label for="results-autoupdate" data-l10n-id="ep_adminpads2_autoupdate-label">Auto-update on pad changes</label>
  87. <div id="search-results">
  88. <div id="loading" data-l10n-id="ep_adminpads2_loading">Loading…</div>
  89. <div id="pad-widget">
  90. <table id="results-table">
  91. <thead>
  92. <tr>
  93. <th class="padname" data-l10n-id="ep_adminpads2_padname">Padname</th>
  94. <th class="last-edited" data-l10n-id="ep_adminpads2_last-edited">Last edited</th>
  95. <th class="user-count" data-l10n-id="ep_adminpads2_pad-user-count">Pad user count</th>
  96. <th class="actions" data-l10n-id="ep_adminpads2_action">Action</th>
  97. </tr>
  98. </thead>
  99. <tbody class="template">
  100. <tr id="template">
  101. <td class="padname"></td>
  102. <td class="last-edited"></td>
  103. <td class="user-count"></td>
  104. <td class="actions">
  105. <input type="button" value="Delete" class="do-delete" data-l10n-id="ep_adminpads2_delete.value">
  106. </td>
  107. </tr>
  108. </tbody>
  109. <tbody id="results">
  110. </tbody>
  111. </table>
  112. <input type="button" value="&lt;&lt;" id="do-prev-page">
  113. <span id="offset"></span>..<span id="limit"></span> / <span id="total"></span>
  114. <input type="button" value="&gt;&gt;" id="do-next-page">
  115. </div>
  116. <div id="no-results" data-l10n-id="ep_adminpads2_no-results">No results</div>
  117. <div id="error">
  118. <div id="error-title"></div>
  119. <div id="error-explanation"></div>
  120. <div><div id="error-message-scrollbox"><div id="error-message"></div></div></div>
  121. </div>
  122. </div>
  123. </div>
  124. </div>
  125. </div>
  126. </body>
  127. </html>