add express endpoint for admin index.html

pull/1127/head
John McLear 2012-11-05 12:58:02 +00:00
parent 0fa25264bc
commit 3766858dd2
2 changed files with 25 additions and 2 deletions

View File

@ -1,5 +1,8 @@
var eejs = require('ep_etherpad-lite/node/eejs');
exports.expressCreateServer = function (hook_name, args, cb) {
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", {}) );
});
};
}

View 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>