mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-20 06:29:53 +01:00
add express endpoint for admin index.html
This commit is contained in:
parent
0fa25264bc
commit
3766858dd2
2 changed files with 25 additions and 2 deletions
|
@ -1,5 +1,8 @@
|
||||||
|
var eejs = require('ep_etherpad-lite/node/eejs');
|
||||||
|
|
||||||
exports.expressCreateServer = function (hook_name, args, cb) {
|
exports.expressCreateServer = function (hook_name, args, cb) {
|
||||||
args.app.get('/admin', function(req, res) {
|
args.app.get('/admin', function(req, res) {
|
||||||
res.send( 501, 'Not Implemented, yet. Meanwhile go to <a href="/admin/plugins">/admin/plugins</a>' );
|
res.send( eejs.require("ep_etherpad-lite/templates/admin/index.html", {}) );
|
||||||
});
|
});
|
||||||
};
|
}
|
||||||
|
|
||||||
|
|
20
src/templates/admin/index.html
Normal file
20
src/templates/admin/index.html
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Etherpad Lite Admin Dashboard</title>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
|
||||||
|
<link rel="stylesheet" href="../static/css/admin.css">
|
||||||
|
<script src="../static/js/jquery.js"></script>
|
||||||
|
<script src="../socket.io/socket.io.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="wrapper">
|
||||||
|
<h1>Etherpad Lite Admin Dashboard</h1>
|
||||||
|
<div>
|
||||||
|
<a href="../admin/plugins">Install and Uninstall plugins</a>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<a href="../admin/settings">Modify Server and Plugin Settings</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in a new issue