From 3766858dd226d3bcd50a70e31acddfa132c98338 Mon Sep 17 00:00:00 2001 From: John McLear Date: Mon, 5 Nov 2012 12:58:02 +0000 Subject: [PATCH] add express endpoint for admin index.html --- src/node/hooks/express/admin.js | 7 +++++-- src/templates/admin/index.html | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 src/templates/admin/index.html diff --git a/src/node/hooks/express/admin.js b/src/node/hooks/express/admin.js index 83bada22..766370fc 100644 --- a/src/node/hooks/express/admin.js +++ b/src/node/hooks/express/admin.js @@ -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 /admin/plugins' ); + res.send( eejs.require("ep_etherpad-lite/templates/admin/index.html", {}) ); }); -}; \ No newline at end of file +} + diff --git a/src/templates/admin/index.html b/src/templates/admin/index.html new file mode 100644 index 00000000..5f1d0188 --- /dev/null +++ b/src/templates/admin/index.html @@ -0,0 +1,20 @@ + + + Etherpad Lite Admin Dashboard + + + + + + +
+

Etherpad Lite Admin Dashboard

+
+ Install and Uninstall plugins +
+
+ Modify Server and Plugin Settings +
+
+ +