From f49fc5640ddcdd9c72ae1e95729fb44073dbb595 Mon Sep 17 00:00:00 2001 From: Egil Moeller Date: Sat, 10 Apr 2010 03:00:33 +0200 Subject: Oups, wrong path used before --- .../default/templates/admin/pluginmanager.ejs | 147 +++++++++++++++++++++ 1 file changed, 147 insertions(+) create mode 100644 etherpad/src/themes/default/templates/admin/pluginmanager.ejs (limited to 'etherpad/src/themes/default/templates/admin') diff --git a/etherpad/src/themes/default/templates/admin/pluginmanager.ejs b/etherpad/src/themes/default/templates/admin/pluginmanager.ejs new file mode 100644 index 0000000..077d10a --- /dev/null +++ b/etherpad/src/themes/default/templates/admin/pluginmanager.ejs @@ -0,0 +1,147 @@ +<% /* Copyright 2009 Google Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS-IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ %> +<% + helpers.setHtmlTitle("EtherPad: Manage plugins"); +/* + helpers.includeCss("plugins/twitterStyleTags/tagBrowser.css"); + helpers.includeCss("plugins/twitterStyleTags/pad.css"); */ + helpers.setBodyId("padbody"); + helpers.addBodyClass("limwidth nonpropad nonprouser"); + helpers.includeCss("pad2_ejs.css"); + helpers.includeCss("admin/pluginmanager.css"); + helpers.includeJs("undo-xpopup.js"); + helpers.includeCometJs(); + helpers.includeJQuery(); + helpers.includeJs("json2.js"); + helpers.includeJs("colorutils.js"); + helpers.includeJs("ace.js"); + helpers.includeJs("collab_client.js"); + helpers.includeJs("draggable.js"); + helpers.includeJs("pad_utils.js"); + helpers.includeJs("pad_cookie.js"); + helpers.includeJs("pad_editor.js"); + helpers.includeJs("pad_userlist.js"); + helpers.includeJs("pad_editbar.js"); + helpers.includeJs("pad_chat.js"); + helpers.includeJs("pad_docbar.js"); + helpers.includeJs("pad_impexp.js"); + helpers.includeJs("pad_savedrevs.js"); + helpers.includeJs("pad_connectionstatus.js"); + helpers.includeJs("pad_modals.js"); + helpers.includeJs("pad2.js"); + helpers.suppressGA(); + helpers.setRobotsPolicy({index: false, follow: false}); + + function inArray(item, arr) { + for (var i = 0; i < arr.length; i++) + if (arr[i] == item) + return true; + return false; + } +%> + +
+
+
+
+
+ + <% if (isProAccountHolder) { %> +
<%= toHTML(account.email) %>(sign out)
+ <% } else if (isPro) { %> + + <% } %> +
+
+
+ + + + + + <% + plugins.callHookStr('docbarItemsAll', {}, '', ''); + plugins.callHookStr('docbarItemsPluginManager', {}, '', ''); + %> + + +
Plugin manager ', '', '
+ +
+
+
+ +
+
+
+ +
+ +
+
+ +
+
+
+
+ +
+
+
+
+ + + + + + + <% for (var plugin in plugins.pluginModules) { %> + + + + + + <% } %> +
Module nameStatus
+ <%= plugin %> +
+ <%= plugins.pluginModules[plugin].description %> +
+
+ <% if (plugins.plugins[plugin] !== undefined) { %> + Installed + <% } else { %> + Not installed + <% } %> + + <% if (plugins.plugins[plugin] !== undefined) { %> + Uninstall + Reinstall + <% if (plugins.plugins[plugin].configLink !== undefined) { %> + Configure + <% } %> + <% } else { %> + Install + <% } %> +
+
+
+
+ +
+
+
+
+
+
-- cgit v1.2.3-1-g7c22 From 57b352fec217de33e5b00e32e566a0eb44edfe3d Mon Sep 17 00:00:00 2001 From: Egil Moeller Date: Sat, 10 Apr 2010 23:16:12 +0200 Subject: Made the plugin manager use page.ejs --- .../default/templates/admin/pluginmanager.ejs | 163 ++++++--------------- 1 file changed, 45 insertions(+), 118 deletions(-) (limited to 'etherpad/src/themes/default/templates/admin') diff --git a/etherpad/src/themes/default/templates/admin/pluginmanager.ejs b/etherpad/src/themes/default/templates/admin/pluginmanager.ejs index 077d10a..cc47928 100644 --- a/etherpad/src/themes/default/templates/admin/pluginmanager.ejs +++ b/etherpad/src/themes/default/templates/admin/pluginmanager.ejs @@ -12,36 +12,9 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ %> <% + template.inherit('page.ejs'); helpers.setHtmlTitle("EtherPad: Manage plugins"); -/* - helpers.includeCss("plugins/twitterStyleTags/tagBrowser.css"); - helpers.includeCss("plugins/twitterStyleTags/pad.css"); */ - helpers.setBodyId("padbody"); - helpers.addBodyClass("limwidth nonpropad nonprouser"); - helpers.includeCss("pad2_ejs.css"); helpers.includeCss("admin/pluginmanager.css"); - helpers.includeJs("undo-xpopup.js"); - helpers.includeCometJs(); - helpers.includeJQuery(); - helpers.includeJs("json2.js"); - helpers.includeJs("colorutils.js"); - helpers.includeJs("ace.js"); - helpers.includeJs("collab_client.js"); - helpers.includeJs("draggable.js"); - helpers.includeJs("pad_utils.js"); - helpers.includeJs("pad_cookie.js"); - helpers.includeJs("pad_editor.js"); - helpers.includeJs("pad_userlist.js"); - helpers.includeJs("pad_editbar.js"); - helpers.includeJs("pad_chat.js"); - helpers.includeJs("pad_docbar.js"); - helpers.includeJs("pad_impexp.js"); - helpers.includeJs("pad_savedrevs.js"); - helpers.includeJs("pad_connectionstatus.js"); - helpers.includeJs("pad_modals.js"); - helpers.includeJs("pad2.js"); - helpers.suppressGA(); - helpers.setRobotsPolicy({index: false, follow: false}); function inArray(item, arr) { for (var i = 0; i < arr.length; i++) @@ -51,97 +24,51 @@ limitations under the License. */ %> } %> -
-
-
-
-
- - <% if (isProAccountHolder) { %> -
<%= toHTML(account.email) %>(sign out)
- <% } else if (isPro) { %> - - <% } %> -
-
-
- - - - - - <% - plugins.callHookStr('docbarItemsAll', {}, '', ''); - plugins.callHookStr('docbarItemsPluginManager', {}, '', ''); - %> - - -
Plugin manager ', '', '
- -
-
-
- -
-
-
+<% template.define('docBarTitle', function() { var ejs_data=''; %> + Plugin manager +<% return ejs_data; }); %> -
-
-
- -
-
-
-
- -
-
-
-
- - - - - - - <% for (var plugin in plugins.pluginModules) { %> - - - - - - <% } %> -
Module nameStatus
- <%= plugin %> -
- <%= plugins.pluginModules[plugin].description %> -
-
- <% if (plugins.plugins[plugin] !== undefined) { %> - Installed - <% } else { %> - Not installed - <% } %> - - <% if (plugins.plugins[plugin] !== undefined) { %> - Uninstall - Reinstall - <% if (plugins.plugins[plugin].configLink !== undefined) { %> - Configure - <% } %> - <% } else { %> - Install - <% } %> -
-
-
-
+<% template.define('docBarItems', function() { var ejs_data=''; %> + <%: plugins.callHookStr('docbarItemsPluginManager', {}, '', '', ''); %> +<% return ejs_data; }); %> -
-
-
+<% template.define('contentArea', function() { var ejs_data=''; %> +
+ + + + + + + <% for (var plugin in plugins.pluginModules) { %> + + + + + + <% } %> +
Module nameStatus
+ <%= plugin %> +
+ <%= plugins.pluginModules[plugin].description %> +
+
+ <% if (plugins.plugins[plugin] !== undefined) { %> + Installed + <% } else { %> + Not installed + <% } %> + + <% if (plugins.plugins[plugin] !== undefined) { %> + Uninstall + Reinstall + <% if (plugins.plugins[plugin].configLink !== undefined) { %> + Configure + <% } %> + <% } else { %> + Install + <% } %> +
-
-
+<% return ejs_data; }); %> -- cgit v1.2.3-1-g7c22