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

<!DOCTYPE html>
<html>
<head>
<title data-l10n-id="ep_adminpads2_title">Pad administration</title>
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="../static/css/admin.css">
<style type="text/css">
#search-results {margin: 1.5em 0;}
#pad-widget {display: none;}
#results-table {margin: 0;}
#results-table .padname {text-align: left;}
#results-table .last-edited {text-align: center; width: 1%; white-space: nowrap;}
#results-table .user-count {text-align: right; width: 1%; white-space: nowrap;}
#results-table .actions {text-align: center; width: 1%; white-space: nowrap;}
#loading, #no-results {font-style: italic;}
#no-results {display: none;}
#error {
display: none;
border-style: solid;
border-width: 0.2em;
border-color: #900;
}
#error > * {
padding-left: 1em;
padding-right: 1em;
padding-top: 0.4em;
padding-bottom: 0.4em;
}
#error-title {
color: #fff;
background-color: #900;
font-weight: bold;
}
#error-message {
background-color: #ddd;
padding-left: 1em;
padding-right: 1em;
padding-top: 0.4em;
padding-bottom: 0.4em;
border-left-style: solid;
border-left-width: 0.4em;
border-left-color: #888;
overflow-x: auto;
white-space: pre;
font-family: monospace;
display: inline-block;
}
#error-message-scrollbox {
overflow-x: auto;
}
</style>
<script src="../static/js/jquery.js"></script>
<script src="../socket.io/socket.io.js"></script>
<link rel="localizations" type="application/l10n+json" href="../locales.json" />
<script src="../static/js/html10n.js"></script>
<script src="../static/js/l10n.js"></script>
<script src="../static/plugins/ep_adminpads2/static/js/admin/pads.js"></script>
</head>
<body>
<div id="wrapper">
<% if (errors.length) { %>
<div class="errors">
<% errors.forEach(function (item) { %>
<div class="error"><%= item.toString() %></div>
<% }) %>
</div>
<% } %>
<div class="menu">
<h1><a href="../../">Etherpad</a></h1>
<ul>
<% e.begin_block("adminMenu"); %>
<li><a href="plugins" data-l10n-id="admin_plugins">Plugin manager</a></li>
<li><a href="settings" data-l10n-id="admin_settings">Settings</a></li>
<li><a href="plugins/info" data-l10n-id="admin_plugins_info">Troubleshooting information</a></li>
<% e.end_block(); %>
</ul>
</div>
<div class="innerwrapper">
<div class="paged listing">
<h2 data-l10n-id="ep_adminpads2_search-heading">Search for pads</h2>
<form name="search-form" id="search-form">
<input type="text" name="search" placeholder="Search term" id="search-query" data-l10n-id="ep_adminpads2_search-box.placeholder">
<input type="button" value="Search" id="do-search" data-l10n-id="ep_adminpads2_search-button.value">
</form>
<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">
<label for="results-autoupdate" data-l10n-id="ep_adminpads2_autoupdate-label">Auto-update on pad changes</label>
<div id="search-results">
<div id="loading" data-l10n-id="ep_adminpads2_loading">Loading…</div>
<div id="pad-widget">
<table id="results-table">
<thead>
<tr>
<th class="padname" data-l10n-id="ep_adminpads2_padname">Padname</th>
<th class="last-edited" data-l10n-id="ep_adminpads2_last-edited">Last edited</th>
<th class="user-count" data-l10n-id="ep_adminpads2_pad-user-count">Pad user count</th>
<th class="actions" data-l10n-id="ep_adminpads2_action">Action</th>
</tr>
</thead>
<tbody class="template">
<tr id="template">
<td class="padname"></td>
<td class="last-edited"></td>
<td class="user-count"></td>
<td class="actions">
<input type="button" value="Delete" class="do-delete" data-l10n-id="ep_adminpads2_delete.value">
</td>
</tr>
</tbody>
<tbody id="results">
</tbody>
</table>
<input type="button" value="&lt;&lt;" id="do-prev-page">
<span id="offset"></span>..<span id="limit"></span> / <span id="total"></span>
<input type="button" value="&gt;&gt;" id="do-next-page">
</div>
<div id="no-results" data-l10n-id="ep_adminpads2_no-results">No results</div>
<div id="error">
<div id="error-title"></div>
<div id="error-explanation"></div>
<div><div id="error-message-scrollbox"><div id="error-message"></div></div></div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>