From e7b4768a948d10c15e2bbba97f94cd2345cdfabd Mon Sep 17 00:00:00 2001 From: Egil Moeller Date: Sat, 10 Apr 2010 02:57:50 +0200 Subject: Added theme support --- etherpad/etc/etherpad.localdev-default.properties | 1 + etherpad/src/etherpad/utils.js | 8 +- etherpad/src/templates/500_body.ejs | 26 -- etherpad/src/templates/admin/pluginmanager.ejs | 147 ------ etherpad/src/templates/email/padinvite.ejs | 18 - etherpad/src/templates/framed/framedfooter.ejs | 13 - etherpad/src/templates/framed/framedheader-pro.ejs | 79 ---- etherpad/src/templates/framed/framedheader.ejs | 13 - etherpad/src/templates/framed/framedpage-pro.ejs | 31 -- etherpad/src/templates/framed/framedpage.ejs | 37 -- etherpad/src/templates/html.ejs | 43 -- etherpad/src/templates/main/home.ejs | 36 -- etherpad/src/templates/main/pro_signup_body.ejs | 70 --- etherpad/src/templates/misc/pad_default.ejs | 16 - etherpad/src/templates/notice.ejs | 16 - etherpad/src/templates/pad/create_body.ejs | 26 -- etherpad/src/templates/pad/pad_body2.ejs | 499 --------------------- etherpad/src/templates/pad/pad_iphone_body.ejs | 29 -- etherpad/src/templates/pad/padview_body.ejs | 143 ------ etherpad/src/templates/page.ejs | 139 ------ etherpad/src/templates/pro-account/recover.ejs | 48 -- etherpad/src/templates/pro-account/sign-in.ejs | 57 --- etherpad/src/templates/pro-help/main.ejs | 35 -- .../src/templates/pro-help/pro-help-template.ejs | 24 - .../pro/account/account-welcome-email.ejs | 32 -- .../pro/account/forgot-password-email.ejs | 22 - .../src/templates/pro/account/forgot-password.ejs | 66 --- etherpad/src/templates/pro/account/my-account.ejs | 67 --- etherpad/src/templates/pro/account/signin.ejs | 81 ---- .../src/templates/pro/admin/account-manager.ejs | 59 --- .../src/templates/pro/admin/admin-template.ejs | 31 -- .../src/templates/pro/admin/delete-account.ejs | 35 -- .../src/templates/pro/admin/manage-account.ejs | 64 --- etherpad/src/templates/pro/admin/new-account.ejs | 86 ---- etherpad/src/templates/pro/padlist/pro-padlist.ejs | 49 -- etherpad/src/templates/pro/pro_home.ejs | 110 ----- etherpad/src/themes/default/500_body.ejs | 26 ++ .../src/themes/default/admin/pluginmanager.ejs | 147 ++++++ etherpad/src/themes/default/email/padinvite.ejs | 18 + .../src/themes/default/framed/framedfooter.ejs | 13 + .../src/themes/default/framed/framedheader-pro.ejs | 79 ++++ .../src/themes/default/framed/framedheader.ejs | 13 + .../src/themes/default/framed/framedpage-pro.ejs | 31 ++ etherpad/src/themes/default/framed/framedpage.ejs | 37 ++ etherpad/src/themes/default/html.ejs | 43 ++ etherpad/src/themes/default/main/home.ejs | 36 ++ .../src/themes/default/main/pro_signup_body.ejs | 70 +++ etherpad/src/themes/default/misc/pad_default.ejs | 16 + etherpad/src/themes/default/notice.ejs | 16 + etherpad/src/themes/default/pad/create_body.ejs | 26 ++ etherpad/src/themes/default/pad/pad_body2.ejs | 499 +++++++++++++++++++++ .../src/themes/default/pad/pad_iphone_body.ejs | 29 ++ etherpad/src/themes/default/pad/padview_body.ejs | 143 ++++++ etherpad/src/themes/default/page.ejs | 139 ++++++ .../src/themes/default/pro-account/recover.ejs | 48 ++ .../src/themes/default/pro-account/sign-in.ejs | 57 +++ etherpad/src/themes/default/pro-help/main.ejs | 35 ++ .../themes/default/pro-help/pro-help-template.ejs | 24 + .../default/pro/account/account-welcome-email.ejs | 32 ++ .../default/pro/account/forgot-password-email.ejs | 22 + .../themes/default/pro/account/forgot-password.ejs | 66 +++ .../src/themes/default/pro/account/my-account.ejs | 67 +++ etherpad/src/themes/default/pro/account/signin.ejs | 81 ++++ .../themes/default/pro/admin/account-manager.ejs | 59 +++ .../themes/default/pro/admin/admin-template.ejs | 31 ++ .../themes/default/pro/admin/delete-account.ejs | 35 ++ .../themes/default/pro/admin/manage-account.ejs | 64 +++ .../src/themes/default/pro/admin/new-account.ejs | 86 ++++ .../src/themes/default/pro/padlist/pro-padlist.ejs | 49 ++ etherpad/src/themes/default/pro/pro_home.ejs | 110 +++++ 70 files changed, 2254 insertions(+), 2249 deletions(-) delete mode 100644 etherpad/src/templates/500_body.ejs delete mode 100644 etherpad/src/templates/admin/pluginmanager.ejs delete mode 100644 etherpad/src/templates/email/padinvite.ejs delete mode 100644 etherpad/src/templates/framed/framedfooter.ejs delete mode 100644 etherpad/src/templates/framed/framedheader-pro.ejs delete mode 100644 etherpad/src/templates/framed/framedheader.ejs delete mode 100644 etherpad/src/templates/framed/framedpage-pro.ejs delete mode 100644 etherpad/src/templates/framed/framedpage.ejs delete mode 100644 etherpad/src/templates/html.ejs delete mode 100644 etherpad/src/templates/main/home.ejs delete mode 100644 etherpad/src/templates/main/pro_signup_body.ejs delete mode 100644 etherpad/src/templates/misc/pad_default.ejs delete mode 100644 etherpad/src/templates/notice.ejs delete mode 100644 etherpad/src/templates/pad/create_body.ejs delete mode 100644 etherpad/src/templates/pad/pad_body2.ejs delete mode 100644 etherpad/src/templates/pad/pad_iphone_body.ejs delete mode 100644 etherpad/src/templates/pad/padview_body.ejs delete mode 100644 etherpad/src/templates/page.ejs delete mode 100644 etherpad/src/templates/pro-account/recover.ejs delete mode 100644 etherpad/src/templates/pro-account/sign-in.ejs delete mode 100644 etherpad/src/templates/pro-help/main.ejs delete mode 100644 etherpad/src/templates/pro-help/pro-help-template.ejs delete mode 100644 etherpad/src/templates/pro/account/account-welcome-email.ejs delete mode 100644 etherpad/src/templates/pro/account/forgot-password-email.ejs delete mode 100644 etherpad/src/templates/pro/account/forgot-password.ejs delete mode 100644 etherpad/src/templates/pro/account/my-account.ejs delete mode 100644 etherpad/src/templates/pro/account/signin.ejs delete mode 100644 etherpad/src/templates/pro/admin/account-manager.ejs delete mode 100644 etherpad/src/templates/pro/admin/admin-template.ejs delete mode 100644 etherpad/src/templates/pro/admin/delete-account.ejs delete mode 100644 etherpad/src/templates/pro/admin/manage-account.ejs delete mode 100644 etherpad/src/templates/pro/admin/new-account.ejs delete mode 100644 etherpad/src/templates/pro/padlist/pro-padlist.ejs delete mode 100644 etherpad/src/templates/pro/pro_home.ejs create mode 100644 etherpad/src/themes/default/500_body.ejs create mode 100644 etherpad/src/themes/default/admin/pluginmanager.ejs create mode 100644 etherpad/src/themes/default/email/padinvite.ejs create mode 100644 etherpad/src/themes/default/framed/framedfooter.ejs create mode 100644 etherpad/src/themes/default/framed/framedheader-pro.ejs create mode 100644 etherpad/src/themes/default/framed/framedheader.ejs create mode 100644 etherpad/src/themes/default/framed/framedpage-pro.ejs create mode 100644 etherpad/src/themes/default/framed/framedpage.ejs create mode 100644 etherpad/src/themes/default/html.ejs create mode 100644 etherpad/src/themes/default/main/home.ejs create mode 100644 etherpad/src/themes/default/main/pro_signup_body.ejs create mode 100644 etherpad/src/themes/default/misc/pad_default.ejs create mode 100644 etherpad/src/themes/default/notice.ejs create mode 100644 etherpad/src/themes/default/pad/create_body.ejs create mode 100644 etherpad/src/themes/default/pad/pad_body2.ejs create mode 100644 etherpad/src/themes/default/pad/pad_iphone_body.ejs create mode 100644 etherpad/src/themes/default/pad/padview_body.ejs create mode 100644 etherpad/src/themes/default/page.ejs create mode 100644 etherpad/src/themes/default/pro-account/recover.ejs create mode 100644 etherpad/src/themes/default/pro-account/sign-in.ejs create mode 100644 etherpad/src/themes/default/pro-help/main.ejs create mode 100644 etherpad/src/themes/default/pro-help/pro-help-template.ejs create mode 100644 etherpad/src/themes/default/pro/account/account-welcome-email.ejs create mode 100644 etherpad/src/themes/default/pro/account/forgot-password-email.ejs create mode 100644 etherpad/src/themes/default/pro/account/forgot-password.ejs create mode 100644 etherpad/src/themes/default/pro/account/my-account.ejs create mode 100644 etherpad/src/themes/default/pro/account/signin.ejs create mode 100644 etherpad/src/themes/default/pro/admin/account-manager.ejs create mode 100644 etherpad/src/themes/default/pro/admin/admin-template.ejs create mode 100644 etherpad/src/themes/default/pro/admin/delete-account.ejs create mode 100644 etherpad/src/themes/default/pro/admin/manage-account.ejs create mode 100644 etherpad/src/themes/default/pro/admin/new-account.ejs create mode 100644 etherpad/src/themes/default/pro/padlist/pro-padlist.ejs create mode 100644 etherpad/src/themes/default/pro/pro_home.ejs (limited to 'etherpad') diff --git a/etherpad/etc/etherpad.localdev-default.properties b/etherpad/etc/etherpad.localdev-default.properties index 98327fd..374101f 100644 --- a/etherpad/etc/etherpad.localdev-default.properties +++ b/etherpad/etc/etherpad.localdev-default.properties @@ -20,3 +20,4 @@ transportPrefix = /comet transportUseWildcardSubdomains = true useHttpsUrls = false useVirtualFileRoot = ./src +theme = default diff --git a/etherpad/src/etherpad/utils.js b/etherpad/src/etherpad/utils.js index 734aaf5..83bfc07 100644 --- a/etherpad/src/etherpad/utils.js +++ b/etherpad/src/etherpad/utils.js @@ -70,9 +70,13 @@ function findExistsingFile(files) { function findTemplate(filename, plugin) { var files = []; - if (plugin != undefined) + if (plugin != undefined) { files.push('/plugins/' + plugin + '/templates/' + filename); - files.push('/templates/' + filename); + files.push('/themes/' + appjet.config.theme + '/plugins/' + plugin + '/templates/' + filename); + files.push('/themes/default/plugins/' + plugin + '/templates/' + filename); + } + files.push('/themes/' + appjet.config.theme + '/' + filename); + files.push('/themes/default/' + filename); return findExistsingFile(files); } diff --git a/etherpad/src/templates/500_body.ejs b/etherpad/src/templates/500_body.ejs deleted file mode 100644 index 291e0fd..0000000 --- a/etherpad/src/templates/500_body.ejs +++ /dev/null @@ -1,26 +0,0 @@ -<% /* 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 Internal Server Error"); %> - -<% if (trace) { %> -
<%= trace %>
-<% } else { %> -
-
-

Oops! A server error occured. It's been logged.

-

Please email <support@etherpad.com> if this persists.

-
-
-<% } %> - diff --git a/etherpad/src/templates/admin/pluginmanager.ejs b/etherpad/src/templates/admin/pluginmanager.ejs deleted file mode 100644 index 077d10a..0000000 --- a/etherpad/src/templates/admin/pluginmanager.ejs +++ /dev/null @@ -1,147 +0,0 @@ -<% /* 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 - <% } %> -
-
-
-
- -
-
-
-
-
-
diff --git a/etherpad/src/templates/email/padinvite.ejs b/etherpad/src/templates/email/padinvite.ejs deleted file mode 100644 index c6467b8..0000000 --- a/etherpad/src/templates/email/padinvite.ejs +++ /dev/null @@ -1,18 +0,0 @@ -<% /* 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. */ %><%= body %> - --- -Sent by <%= request.host %> at the request of an EtherPad user. -Do not reply to this email. -Report abuse to: support@etherpad.com diff --git a/etherpad/src/templates/framed/framedfooter.ejs b/etherpad/src/templates/framed/framedfooter.ejs deleted file mode 100644 index 7994e38..0000000 --- a/etherpad/src/templates/framed/framedfooter.ejs +++ /dev/null @@ -1,13 +0,0 @@ -<% /* 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. */ %> diff --git a/etherpad/src/templates/framed/framedheader-pro.ejs b/etherpad/src/templates/framed/framedheader-pro.ejs deleted file mode 100644 index 73b0e99..0000000 --- a/etherpad/src/templates/framed/framedheader-pro.ejs +++ /dev/null @@ -1,79 +0,0 @@ -<% /* -Copyright 2009 Google Inc. -Copyright 2010 Pita, Peter Martischka - -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.addBodyClass("pro-withtopbar"); %> - -
- -
- - <% if (account) { %> -
- <%= toHTML(account.email) %> - (sign out) -
- <% } else { %> - <% // TODO: eventually have sign-in link here. %> - <% } %> - -
- - <%= proDomainOrgName %> - - - <% if (isAnEtherpadAdmin) { %> - INVISIBLE ADMIN MODE - <% } %> -
- -
- -
-
- -<% function renderProTopNav() { - var links = [ - ['/', 'Home', 'home'], - ['/ep/padlist/', 'Pads', 'padlist'], - ['/ep/account/', 'My Account', 'account'], - ['/ep/pro-help/', 'Help', 'help'] - ]; - if (account && account.isAdmin) { - links.push(['/ep/admin/', 'Admin', 'admin']); - } - var ul = UL(); - links.forEach(function(l) { - var c = l[2]; - var selc = (request.path == l[0] || navSelection == c) ? " selected" : ""; - ul.push(LI({className: 'topnav_'+c+selc}, - A({href: request.scheme + '://'+request.host+l[0]}, l[1]))); - }); - return ul; -} %> - - <%= pneTrackerHtml %> - -
-
- <%= renderProTopNav() %> - <%= helpers.clearFloats() %> -
-
- - diff --git a/etherpad/src/templates/framed/framedheader.ejs b/etherpad/src/templates/framed/framedheader.ejs deleted file mode 100644 index d6c25cb..0000000 --- a/etherpad/src/templates/framed/framedheader.ejs +++ /dev/null @@ -1,13 +0,0 @@ -<% /* 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. */ %> \ No newline at end of file diff --git a/etherpad/src/templates/framed/framedpage-pro.ejs b/etherpad/src/templates/framed/framedpage-pro.ejs deleted file mode 100644 index b3acb07..0000000 --- a/etherpad/src/templates/framed/framedpage-pro.ejs +++ /dev/null @@ -1,31 +0,0 @@ -<% /* 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.setBodyId("framedpagebody"); - helpers.includeCss("etherpad.css"); - helpers.includeCss("pro/framedpage-pro.css"); - helpers.addBodyClass("pro-body"); -%> - -
- -<% if (helpers.isHeaderVisible()) { %> - <%= renderHeader() %> -<% } %> - -<%= renderGlobalProNotice() %> - -<%= getContentHtml() %> - -
- diff --git a/etherpad/src/templates/framed/framedpage.ejs b/etherpad/src/templates/framed/framedpage.ejs deleted file mode 100644 index b1590f8..0000000 --- a/etherpad/src/templates/framed/framedpage.ejs +++ /dev/null @@ -1,37 +0,0 @@ -<% /* 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.setBodyId("framedpagebody"); - helpers.includeCss("etherpad.css"); - helpers.includeCss("framedpage.css"); - - if (isProDomainRequest) { - helpers.includeCss("pro/pro-page.css"); - } - - if (request.path != "/") { - helpers.addBodyClass("nothome"); - } -%> - -
- -<% if (helpers.isHeaderVisible()) { %> - <%= renderHeader() %> -<% } %> - -<%= getContentHtml() %> - -<%= renderFooter() %> - -
diff --git a/etherpad/src/templates/html.ejs b/etherpad/src/templates/html.ejs deleted file mode 100644 index 056d7a7..0000000 --- a/etherpad/src/templates/html.ejs +++ /dev/null @@ -1,43 +0,0 @@ -<% /* 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.robotsMeta() %> - <%= helpers.htmlTitle() %> - - - - <%= helpers.cssIncludes() %> - - <%= helpers.headExtra() %> - - - - - - <%= bodyHtml %> - - - -<%= helpers.clientVarsScript() %> -<%= helpers.jsIncludes() %> -<%= helpers.googleAnalytics() %> - - - diff --git a/etherpad/src/templates/main/home.ejs b/etherpad/src/templates/main/home.ejs deleted file mode 100644 index aa5d934..0000000 --- a/etherpad/src/templates/main/home.ejs +++ /dev/null @@ -1,36 +0,0 @@ -<% /* -Copyright 2009 Google Inc. -Copyright 2010 Pita, Peter Martischka - -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: Open-Sourced!"); %> - -<% helpers.includeCss("home-opensource.css"); %> - -
-
- EtherPad: Open-Sourced! -
- -
- - Create new pad - - <% if (isProAccountEnabled()) { %> - - Create team site - - <% } %> -
-
- - diff --git a/etherpad/src/templates/main/pro_signup_body.ejs b/etherpad/src/templates/main/pro_signup_body.ejs deleted file mode 100644 index e984878..0000000 --- a/etherpad/src/templates/main/pro_signup_body.ejs +++ /dev/null @@ -1,70 +0,0 @@ -<% /* 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.includeCss('pro-signup.css') %> - -
- -
- diff --git a/etherpad/src/templates/misc/pad_default.ejs b/etherpad/src/templates/misc/pad_default.ejs deleted file mode 100644 index 96b7e25..0000000 --- a/etherpad/src/templates/misc/pad_default.ejs +++ /dev/null @@ -1,16 +0,0 @@ -<% /* 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. */ %> -Welcome to EtherPad! - -This pad text is synchronized as you type, so that everyone viewing this page sees the same text. This allows you to collaborate seamlessly on documents! diff --git a/etherpad/src/templates/notice.ejs b/etherpad/src/templates/notice.ejs deleted file mode 100644 index 311694f..0000000 --- a/etherpad/src/templates/notice.ejs +++ /dev/null @@ -1,16 +0,0 @@ -<% /* 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. */ %> -
- <%= content %> -
diff --git a/etherpad/src/templates/pad/create_body.ejs b/etherpad/src/templates/pad/create_body.ejs deleted file mode 100644 index 5fec49a..0000000 --- a/etherpad/src/templates/pad/create_body.ejs +++ /dev/null @@ -1,26 +0,0 @@ -<% /* 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: Create a new pad?"); %> - -
-
- -

http://<%= request.host %>/<%= toHTML(padId) %>

- -
-

There is no EtherPad document here. Would you like to create one?

- - - -
-
diff --git a/etherpad/src/templates/pad/pad_body2.ejs b/etherpad/src/templates/pad/pad_body2.ejs deleted file mode 100644 index a19e685..0000000 --- a/etherpad/src/templates/pad/pad_body2.ejs +++ /dev/null @@ -1,499 +0,0 @@ -<% /* -Copyright 2009 Google Inc. -Copyright 2010 Pita, Peter Martischka - -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. */ %> - -<% template.inherit('page.ejs') %> - -<% - helpers.setHtmlTitle("EtherPad: "+pageTitle); - helpers.includeJs("ace.js"); - helpers.includeJs("collab_client.js"); - helpers.includeJs("pad_userlist.js"); - helpers.includeJs("pad_chat.js"); - helpers.includeJs("pad_impexp.js"); - helpers.includeJs("pad_savedrevs.js"); - helpers.includeJs("pad_connectionstatus.js"); - - var padUrlAttrValue = request.url.split("?", 1)[0].replace(/\"/g, '"'); - - function exportLink(type, n, label, requiresOffice, url, title) { - url = url || '/ep/pad/export/'+localPadId+'/latest?format='+type; - var classes = ["exportlink", "exporthref"+type, "n"+n]; - if (requiresOffice && !hasOffice) { - classes.push("disabledexport"); - } - else { - classes.push("requiresoffice"); - } - var pieces = ['', label); - /* if (title) { - pieces.push('?'); - }*/ - pieces.push(''); - return pieces.join(''); - } -%> - - -<% template.define('docBarTitleEditor', function() { var ejs_data=''; %> - <% if (isProAccountHolder) { %> - - <% } /* isProAccountHolder */ %> - -
- Save - Cancel -
-<% return ejs_data; }); %> - - -<% template.define('docBarItems', function() { var ejs_data=''; %> - <% if (isProAccountHolder) { %> - - - Security - - - <% } /* isProAccountHolder */ %> - - - Pad Options - - - - Import/Export - - - - Saved revisions - - - - Time Slider - -<% return ejs_data; }); %> - - -<% template.define('docBarDropdowns', function() { var ejs_data=''; %> -
-
-
-
-
-
-
-
-
-
-
-
-
-
Import from text file, HTML, Word, or RTF:
-
-
- -
-
-
Successful!
-
- - - - - - -
-
-
-
-
Export current pad as:
- -
-
-
- Hide -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Save Now - -
-
-
-
-
- -
-
-
- Hide -
-
-
-
Saved: Revision 1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Shared view options:
- - - - -
Display font:
- -
These options affect everyone's view of the pad.
- Hide -
-
-
- <% if (isProAccountHolder) { %> -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Pad Access:
- - - - -
-
-
Password:
-
-
-
None
- Set... - Clear -
-
- Save - Cancel - -
-
-
- Hide -
-
-
- <% } /* isProAccountHolder */ %> -<% return ejs_data; }); %> - - -<% template.define('sideBar', function() { var ejs_data=''; %> -
-
-
-
- Connecting... -
-
- Reestablishing connection... -
-
-

Disconnected.

-

Opened in another window.

-

No Authorization.

-
-

We're having trouble talking to the EtherPad synchronization server. - You may be connecting through an incompatible firewall or proxy server.

-
-
-

We were unable to connect to the EtherPad synchronization server. - This may be due to an incompatibility with your web - browser or internet connection.

-
-
-

You seem to have opened this pad in another browser window. - If you'd like to use this window instead, you can reconnect.

-
-
-

Lost connection with the EtherPad synchronization - server. This may be due to a loss of network connectivity.

-
-
-

Server not responding. This may be due to network connectivity issues or high load on the server.

-
-
-

Your browser's credentials or permissions have changed while viewing this pad. Try reconnecting.

-
-
-

If this continues to happen, please let us know - (opens in new window).

-
-
- -
-
-
-
- -
- -
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Save
-
Cancel
-
-
-
-
-
-
-
- - -
-
Invite other users and they will show up here.
-
-
- Share -
-
- -
- -
- -
- Load more history... -
Loading history...
-
-
-
Chat:
-
-
-
-<% return ejs_data; }); %> - - -<% template.define('editBarItemsLeft', function() { var ejs_data=''; %> - - - - - - - -    - - - - - -    - - - - - - -    - - - - - -    - - - - - -<% return ejs_data; }); %> - - -<% template.define('editBarItemsRight', function() { var ejs_data=''; %> - - - -<% return ejs_data; }); %> - - -<% template.define('contentArea', function() { var ejs_data=''; %> -
Loading...
-
-<% return ejs_data; }); %> - - -<% template.define('modals', function() { var ejs_data=''; %> -
- -
-
-
-
-
-
-
- <%/* - - -
*/%> -
-
-

Great, we love feedback! What kind?

- -

These links will open UserVoice in a new window.

-

You can also send email to feedback, support, or bugs at etherpad.com.

-
-
- -
-
-
- -
-
- Public Pad: This pad is accessible to anyone who - visits its URL. To make it private, change security settings. -
-
- Private Pad: This pad is only accessible to team account-holders. To allow anyone to access it, change security settings. -
-
-
- -
or send an email invitation...
- - - - - -
To
-
Subject
-
Message
- -
-
-
-
-
-
-
- - <% if (request.params.djs) { %> -
- <% } %> - - - -<% return ejs_data; }); %> diff --git a/etherpad/src/templates/pad/pad_iphone_body.ejs b/etherpad/src/templates/pad/pad_iphone_body.ejs deleted file mode 100644 index 96279ce..0000000 --- a/etherpad/src/templates/pad/pad_iphone_body.ejs +++ /dev/null @@ -1,29 +0,0 @@ -<% /* 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. */ %> -
- -

EtherPad is not yet fully-functional on the iPhone.

- - - View Read-Only - - - - Proceed to Editor
- (may not be fully-functional) -
- -
diff --git a/etherpad/src/templates/pad/padview_body.ejs b/etherpad/src/templates/pad/padview_body.ejs deleted file mode 100644 index 75c38fe..0000000 --- a/etherpad/src/templates/pad/padview_body.ejs +++ /dev/null @@ -1,143 +0,0 @@ -<% /* 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.addBodyClass(bodyClass); - helpers.setHtmlTitle(toHTML(padId + " / " + rlabel)); - helpers.setBodyId("padviewbody"); - helpers.includeCss("broadcast.css"); - helpers.setRobotsPolicy({index: false, follow: false}) - helpers.includeJQuery(); - helpers.includeCometJs(); - helpers.includeJs("json2.js"); - helpers.includeJs("pad_utils.js"); - helpers.includeJs("broadcast_slider.js"); - helpers.includeJs("broadcast_revisions.js"); - helpers.includeJs("easysync2_client.js"); - helpers.includeJs("domline_client.js"); - helpers.includeJs("linestylefilter_client.js"); - helpers.includeJs("cssmanager_client.js"); - helpers.includeJs("broadcast.js"); - helpers.addToHead('\n\n'); - - function dfmt(t) { - var d = new Date(t); - return d.toString(); - } - - function exportOption(type, label, requiresOffice, url, title) { - url = url || '/ep/pad/export/'+padId+'/'+revisionId+'?format='+type; - var aStart = - [''].join(''); - var r = [''); - return r.join(''); - } -%> - -
-
-
-
-
- EtherPad -
-<% if (isProAccountHolder) { %> -
<%= toHTML(account.email) %> - (sign out) -
-<% } else if (isPro) { %> -
- sign in -
-<% } %> -
- -
- - -
- -
style="font-size: 3em;" <% } %> -> -

<%= padTitle %>

<%= rlabel %>
-Saved -<%= ["Jan", "Feb", "March", "April", "May", "June", "July", "Aug", "Sept", "Oct", "Nov", "Dec"][new Date(savedWhen).getMonth()] %> -<%= new Date(savedWhen).getDate() %>, -<%= new Date(savedWhen).getFullYear() %> -
-
style="font-size: 1.3em;" <% } %> - > -<%= padHTML %>
-
-
diff --git a/etherpad/src/templates/page.ejs b/etherpad/src/templates/page.ejs deleted file mode 100644 index 7dd36ad..0000000 --- a/etherpad/src/templates/page.ejs +++ /dev/null @@ -1,139 +0,0 @@ -<% /* -Copyright 2009 Google Inc. -Copyright 2010 Pita, Peter Martischka - -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.setBodyId("padbody"); - helpers.addBodyClass(bodyClass); - helpers.includeCss("pad2_ejs.css"); - helpers.includeJs("undo-xpopup.js"); - helpers.includeCometJs(); - helpers.includeJQuery();; - helpers.includeJs("json2.js"); - helpers.includeJs("colorutils.js"); - helpers.includeJs("draggable.js"); - helpers.includeJs("pad_utils.js"); - helpers.includeJs("pad_cookie.js"); - helpers.includeJs("pad_editor.js"); - helpers.includeJs("pad_editbar.js"); - helpers.includeJs("pad_docbar.js"); - helpers.includeJs("pad_modals.js"); - helpers.includeJs("pad2.js"); - helpers.suppressGA(); - helpers.setRobotsPolicy({index: false, follow: false}); - -%> - -<% template.define('body', function() { var ejs_data=''; %> -
-
-
- <% /* floated left */ %> -
- <% /* New Pad */ %> - <% /* floated right */ %> -
- <% /* Toggle Width */ %> - <% /* non-floated */ %> -
- EtherPad -
- <% if (isProAccountHolder) { %> - Return to pad list -
<%= toHTML(account.email) %> - (sign out) -
- <% } else if (isPro) { %> -
- sign in -
- <% } %> -
-
-
-
-

Server Notice:

- hide -

-
-
- -
- <%: template.use('docBarTitle'); %> - - - - - - <% - plugins.callHookStr('docbarItemsAll', {}, '', ''); - plugins.callHookStr('docbarItemsPad', {}, '', ''); - %> - <%: template.use('docBarItems'); %> - - -
<%= initialTitle %> ', '', '
- <%: template.use('docBarTitleEditor'); %> - <%: template.use('docBarDropdowns'); %> -
-
- -
-
<%: template.use('sideBar'); %>
- -
-
- <% /* floated left */ %> -
- <% /* floated right */ %> -
- <% /* non-floated */ %> -
- - - <%: template.use('editBarItemsLeft'); %> - - -
 
- - - <%: template.use('editBarItemsRight'); %> - -
-
-
-
<%: template.use('contentArea'); %>
-
- -
-
-
Zoom:
- -
- -
-
-
- -
- -
- - <%: template.use('modals'); %> - -<% return ejs_data; }); %> diff --git a/etherpad/src/templates/pro-account/recover.ejs b/etherpad/src/templates/pro-account/recover.ejs deleted file mode 100644 index 686fe3b..0000000 --- a/etherpad/src/templates/pro-account/recover.ejs +++ /dev/null @@ -1,48 +0,0 @@ -<% /* 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.includeCss("global-pro-account.css") %> - -
- -
- - diff --git a/etherpad/src/templates/pro-account/sign-in.ejs b/etherpad/src/templates/pro-account/sign-in.ejs deleted file mode 100644 index 470bbc4..0000000 --- a/etherpad/src/templates/pro-account/sign-in.ejs +++ /dev/null @@ -1,57 +0,0 @@ -<% /* 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.includeCss("global-pro-account.css") %> - -
- -
- - diff --git a/etherpad/src/templates/pro-help/main.ejs b/etherpad/src/templates/pro-help/main.ejs deleted file mode 100644 index 428d7f7..0000000 --- a/etherpad/src/templates/pro-help/main.ejs +++ /dev/null @@ -1,35 +0,0 @@ -<% /* 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. */ %> -

EtherPad Professional Edition Help

- -

These pages are evolving. If you have any questions, or find -parts of EtherPad confusing, please write in to our Helpdesk by -emailing <%= helpers.oemail("support") %>.

- -

Please report bugs to <%= helpers.oemail("bugs") %>.

- -

Also note that you can also get help from other users in the UserVoice Community -Forums.

- -

Help Topics:

- -
    -<% helpTopics.forEach(function(t) { %> -
  • <%= A({href: "/ep/pro-help/"+t[0]}, t[1]) %>
  • -<% }); %> -
- - - diff --git a/etherpad/src/templates/pro-help/pro-help-template.ejs b/etherpad/src/templates/pro-help/pro-help-template.ejs deleted file mode 100644 index 9cc8205..0000000 --- a/etherpad/src/templates/pro-help/pro-help-template.ejs +++ /dev/null @@ -1,24 +0,0 @@ -<% /* 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.includeJQuery() %> -<% helpers.includeJs("etherpad.js") %> -<% helpers.includeCss("pro-help.css") %> - -
-
- <%= renderContent() %> -
-
- - - diff --git a/etherpad/src/templates/pro/account/account-welcome-email.ejs b/etherpad/src/templates/pro/account/account-welcome-email.ejs deleted file mode 100644 index 25af6f8..0000000 --- a/etherpad/src/templates/pro/account/account-welcome-email.ejs +++ /dev/null @@ -1,32 +0,0 @@ -<% /* 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. */ %> -Dear <%= account.fullName %>, - -<% if (adminAccount) { %> -<%= adminAccount.fullName %> has created an EtherPad account for you on <%= -request.host %> (<%= siteName %>). You can sign in by clicking on the following link: -<% } else { %> -Thank you for signing up for EtherPad Professional Edition. You can sign in by clicking on the following link: -<% } %> - -<%= signinLink %> - -For help signing in, or general support issues, please email support@etherpad.com. - --- -This email was sent to <%= toEmail %> from an EtherPad user. -If you received it in error, you may safely ignore it. -<%/* EtherPad's offices are located at Pier 38, The Embarcadero, -San Francisco, CA 94107 */%> - diff --git a/etherpad/src/templates/pro/account/forgot-password-email.ejs b/etherpad/src/templates/pro/account/forgot-password-email.ejs deleted file mode 100644 index 4595cee..0000000 --- a/etherpad/src/templates/pro/account/forgot-password-email.ejs +++ /dev/null @@ -1,22 +0,0 @@ -<% /* 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. */ %> -Dear <%= account.fullName %>, - -We received a request to reset your EtherPad password. To proceed, click the following link: - -<%= recoverUrl %> - -If you did not request a password reset, simply ignore this email. - - diff --git a/etherpad/src/templates/pro/account/forgot-password.ejs b/etherpad/src/templates/pro/account/forgot-password.ejs deleted file mode 100644 index bbc78dd..0000000 --- a/etherpad/src/templates/pro/account/forgot-password.ejs +++ /dev/null @@ -1,66 +0,0 @@ -<% /* 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.includeCss("pro/account.css") %> -<% helpers.setHtmlTitle("EtherPad: Forgot Password") %> - -
- -
- diff --git a/etherpad/src/templates/pro/account/my-account.ejs b/etherpad/src/templates/pro/account/my-account.ejs deleted file mode 100644 index 9634285..0000000 --- a/etherpad/src/templates/pro/account/my-account.ejs +++ /dev/null @@ -1,67 +0,0 @@ -<% /* 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.includeCss("pro/account.css") %> -<% helpers.setHtmlTitle("EtherPad: My Account") %> - -
- -
- diff --git a/etherpad/src/templates/pro/account/signin.ejs b/etherpad/src/templates/pro/account/signin.ejs deleted file mode 100644 index c67bea6..0000000 --- a/etherpad/src/templates/pro/account/signin.ejs +++ /dev/null @@ -1,81 +0,0 @@ -<% /* 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.includeJQuery() %> -<% helpers.includeJs("pro/signin-client.js") %> -<% helpers.includeCss("pro/account.css") %> -<% helpers.setHtmlTitle("EtherPad: Sign In") %> - -
- -
- diff --git a/etherpad/src/templates/pro/admin/account-manager.ejs b/etherpad/src/templates/pro/admin/account-manager.ejs deleted file mode 100644 index f1b443f..0000000 --- a/etherpad/src/templates/pro/admin/account-manager.ejs +++ /dev/null @@ -1,59 +0,0 @@ -<% /* 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. */ %> -<% function fmtdate(d) { - if (!d) { - return "Never"; - } else { - return d.toString().split(' ').slice(0,5).join(' '); - } -} %> - -

Accounts

- -
- - <%= messageDiv() %> - <%= warningDiv() %> - -

Create new account

- - <% function renderAccountRow(u) { - var name = u.fullName; - return TR(TD(name), - TD(u.email), - TD(u.isAdmin ? 'Admin' : ''), - TD(fmtdate(u.lastLoginDate)), - TD(A({href: request.path + "account/"+u.id}, "Manage"))) - } - %> - - - - - - - - - - - <% accountList.forEach(function(u) { %> - <%= renderAccountRow(u) %> - <% }); %> - -
NameEmailRoleLast Signed In 
- - - -
- diff --git a/etherpad/src/templates/pro/admin/admin-template.ejs b/etherpad/src/templates/pro/admin/admin-template.ejs deleted file mode 100644 index 0964e33..0000000 --- a/etherpad/src/templates/pro/admin/admin-template.ejs +++ /dev/null @@ -1,31 +0,0 @@ -<% /* 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 Administration") %> -<% helpers.includeCss("pro/pro-admin.css") %> - -
- - - - - -
- <%= renderAdminLeftNav() %> - - <%= getAdminContent() %> -
- -
- - - diff --git a/etherpad/src/templates/pro/admin/delete-account.ejs b/etherpad/src/templates/pro/admin/delete-account.ejs deleted file mode 100644 index 3de2122..0000000 --- a/etherpad/src/templates/pro/admin/delete-account.ejs +++ /dev/null @@ -1,35 +0,0 @@ -<% /* 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. */ %>
- -

Delete Account

- - <%= errorDiv() %> - -
Do you really want to delete this account?
- - - -
- -      - -
- -
When an account is deleted, some references to it may remain on the - site. For example, edits to pads by the deleted account will remain in the - pad's history. However, the deleted account will no longer be able to - sign in, and will not be counted toward your monthly quota.
- -
- diff --git a/etherpad/src/templates/pro/admin/manage-account.ejs b/etherpad/src/templates/pro/admin/manage-account.ejs deleted file mode 100644 index 72529b4..0000000 --- a/etherpad/src/templates/pro/admin/manage-account.ejs +++ /dev/null @@ -1,64 +0,0 @@ -<% /* 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. */ %> -

Manage Account

- -
- - <%= errorDiv() %> - -
- - - - - - - - - - - - - - - - - - - - - - -
Email:
Full Name:
- - /> -
- Delete Account -
- -
- - -
- -
- -
- - - diff --git a/etherpad/src/templates/pro/admin/new-account.ejs b/etherpad/src/templates/pro/admin/new-account.ejs deleted file mode 100644 index 2f2cccf..0000000 --- a/etherpad/src/templates/pro/admin/new-account.ejs +++ /dev/null @@ -1,86 +0,0 @@ -<% /* 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. */ %><% function formField(id, label, type) { - if (!type) { type = "text"; } - var val = (oldData[id] || ""); - - var d = DIV({className: "formfield"}); - - if (type == "checkbox") { - d.push(INPUT({type: type, - id: id, - name: id, - className: type+"input", - checked: (oldData[id] ? true : undefined)}), - LABEL({htmlFor: id, className: type+"label"}, label)); - d.push(html('
')); - } else if (type == "text") { - d.push(LABEL({className: type+"label", htmlFor: id}, label), - INPUT({className: type+"input", - type: type, - id: id, - name: id, - maxlength: 80, - value: val})); - } else if (type == "temppass") { - if (!val) { - val = stringutils.randomString(6).toUpperCase(); - } - d.push(LABEL({className: type+"label", htmlFor: id}, label), - INPUT({className: type+"input", - type: "text", - id: id, - name: id, - maxlength: 80, - value: val - })); - } - - return d; -} %> - -

Add new account

- -
- - <%= errorDiv() %> - -
- - -

-
- - -
- -
- -

An email will be sent to this account with a link to sign in. - They will be prompted to change their password the first time they sign in.

-

- -
- - - - diff --git a/etherpad/src/templates/pro/padlist/pro-padlist.ejs b/etherpad/src/templates/pro/padlist/pro-padlist.ejs deleted file mode 100644 index b762679..0000000 --- a/etherpad/src/templates/pro/padlist/pro-padlist.ejs +++ /dev/null @@ -1,49 +0,0 @@ -<% /* 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.includeCss("lib/jquery.contextmenu.css") %> -<% helpers.includeCss("pro/padlist.css") %> - -<% helpers.includeJQuery() %> -<% helpers.includeJs("lib/jquery.contextmenu.js") %> -<% helpers.includeJs("pro/pro-padlist-client.js") %> - -<% helpers.setHtmlTitle("Pad List - " + orgName + " - EtherPad") %> - -
- - <%= renderPadNav() %> - <%= renderNotice() %> - <%= renderShowingDesc(padList.length) %> - - <% if (padList.length > 0) { %> - <%= renderPadList() %> -

<%= padList.length %> pad<% if (padList.length > 1) { %>s<% } %> <% if (isAdmin) { %>(Download all pads as a ZIP archive.) <% } %> -

- - <% } else { %> -

No pads in this list.

- <% } %> - -
- - - - - - diff --git a/etherpad/src/templates/pro/pro_home.ejs b/etherpad/src/templates/pro/pro_home.ejs deleted file mode 100644 index 8d92139..0000000 --- a/etherpad/src/templates/pro/pro_home.ejs +++ /dev/null @@ -1,110 +0,0 @@ -<% /* 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(orgName + " - EtherPad"); %> -<% helpers.includeJQuery() %> -<% helpers.includeJs("etherpad.js") %> -<% helpers.includeCss("pro/pro-home.css"); %> -<% helpers.includeCss("pro/padlist.css"); %> - -
- -
- Welcome <%= account.fullName %> - <% if (account.isAdmin) { %>(Administrator)<% } %> -
-
-
- - -
- - Create new pad - - - <% if (livePads.length > 0) { %> -
-

Live Pads (currently being edited)

-
- <%= renderLivePads() %> -
-
- <% } %> - - <% if (recentPads.length > 0) { %> -
-

Your Recent Pads:

-
- <%= renderRecentPads() %> -
- View all pads... -
-
- <% } %> - -
- -
-
- Latest News -
- -
-
- June 17th, 2009 -
-
-
- -
-

Welcome to your EtherPad Beta Account! Please report bugs by - sending email to <%= helpers.oemail("bugs") %>. You can also give us - feedback and feature suggestions via UserVoice.

- -

If you have any questions, just email <%= - helpers.oemail("support") %> and - we will respond to your inquiries.

- -

We hope you enjoy EtherPad!

- -

Sincerely,

- -

Aaron Iba
- CEO, AppJet Inc. -

-
- -
- - -
- - <%= helpers.clearFloats() %> - - <% if (isPNE) { %> -
-
- EtherPad Private Network Edition (PNE) - Version <%= pneVersion %>
- - <% if (isEvaluation && evalExpDate) { %> -
- EVALUATION EDITION: Expires <%= evalExpDate.toString() - %>.
- <% } %> -
- <% } %> - -
- diff --git a/etherpad/src/themes/default/500_body.ejs b/etherpad/src/themes/default/500_body.ejs new file mode 100644 index 0000000..291e0fd --- /dev/null +++ b/etherpad/src/themes/default/500_body.ejs @@ -0,0 +1,26 @@ +<% /* 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 Internal Server Error"); %> + +<% if (trace) { %> +
<%= trace %>
+<% } else { %> +
+
+

Oops! A server error occured. It's been logged.

+

Please email <support@etherpad.com> if this persists.

+
+
+<% } %> + diff --git a/etherpad/src/themes/default/admin/pluginmanager.ejs b/etherpad/src/themes/default/admin/pluginmanager.ejs new file mode 100644 index 0000000..077d10a --- /dev/null +++ b/etherpad/src/themes/default/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 + <% } %> +
+
+
+
+ +
+
+
+
+
+
diff --git a/etherpad/src/themes/default/email/padinvite.ejs b/etherpad/src/themes/default/email/padinvite.ejs new file mode 100644 index 0000000..c6467b8 --- /dev/null +++ b/etherpad/src/themes/default/email/padinvite.ejs @@ -0,0 +1,18 @@ +<% /* 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. */ %><%= body %> + +-- +Sent by <%= request.host %> at the request of an EtherPad user. +Do not reply to this email. +Report abuse to: support@etherpad.com diff --git a/etherpad/src/themes/default/framed/framedfooter.ejs b/etherpad/src/themes/default/framed/framedfooter.ejs new file mode 100644 index 0000000..7994e38 --- /dev/null +++ b/etherpad/src/themes/default/framed/framedfooter.ejs @@ -0,0 +1,13 @@ +<% /* 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. */ %> diff --git a/etherpad/src/themes/default/framed/framedheader-pro.ejs b/etherpad/src/themes/default/framed/framedheader-pro.ejs new file mode 100644 index 0000000..73b0e99 --- /dev/null +++ b/etherpad/src/themes/default/framed/framedheader-pro.ejs @@ -0,0 +1,79 @@ +<% /* +Copyright 2009 Google Inc. +Copyright 2010 Pita, Peter Martischka + +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.addBodyClass("pro-withtopbar"); %> + +
+ +
+ + <% if (account) { %> +
+ <%= toHTML(account.email) %> + (sign out) +
+ <% } else { %> + <% // TODO: eventually have sign-in link here. %> + <% } %> + +
+ + <%= proDomainOrgName %> + + + <% if (isAnEtherpadAdmin) { %> + INVISIBLE ADMIN MODE + <% } %> +
+ +
+ +
+
+ +<% function renderProTopNav() { + var links = [ + ['/', 'Home', 'home'], + ['/ep/padlist/', 'Pads', 'padlist'], + ['/ep/account/', 'My Account', 'account'], + ['/ep/pro-help/', 'Help', 'help'] + ]; + if (account && account.isAdmin) { + links.push(['/ep/admin/', 'Admin', 'admin']); + } + var ul = UL(); + links.forEach(function(l) { + var c = l[2]; + var selc = (request.path == l[0] || navSelection == c) ? " selected" : ""; + ul.push(LI({className: 'topnav_'+c+selc}, + A({href: request.scheme + '://'+request.host+l[0]}, l[1]))); + }); + return ul; +} %> + + <%= pneTrackerHtml %> + +
+
+ <%= renderProTopNav() %> + <%= helpers.clearFloats() %> +
+
+ + diff --git a/etherpad/src/themes/default/framed/framedheader.ejs b/etherpad/src/themes/default/framed/framedheader.ejs new file mode 100644 index 0000000..d6c25cb --- /dev/null +++ b/etherpad/src/themes/default/framed/framedheader.ejs @@ -0,0 +1,13 @@ +<% /* 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. */ %> \ No newline at end of file diff --git a/etherpad/src/themes/default/framed/framedpage-pro.ejs b/etherpad/src/themes/default/framed/framedpage-pro.ejs new file mode 100644 index 0000000..b3acb07 --- /dev/null +++ b/etherpad/src/themes/default/framed/framedpage-pro.ejs @@ -0,0 +1,31 @@ +<% /* 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.setBodyId("framedpagebody"); + helpers.includeCss("etherpad.css"); + helpers.includeCss("pro/framedpage-pro.css"); + helpers.addBodyClass("pro-body"); +%> + +
+ +<% if (helpers.isHeaderVisible()) { %> + <%= renderHeader() %> +<% } %> + +<%= renderGlobalProNotice() %> + +<%= getContentHtml() %> + +
+ diff --git a/etherpad/src/themes/default/framed/framedpage.ejs b/etherpad/src/themes/default/framed/framedpage.ejs new file mode 100644 index 0000000..b1590f8 --- /dev/null +++ b/etherpad/src/themes/default/framed/framedpage.ejs @@ -0,0 +1,37 @@ +<% /* 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.setBodyId("framedpagebody"); + helpers.includeCss("etherpad.css"); + helpers.includeCss("framedpage.css"); + + if (isProDomainRequest) { + helpers.includeCss("pro/pro-page.css"); + } + + if (request.path != "/") { + helpers.addBodyClass("nothome"); + } +%> + +
+ +<% if (helpers.isHeaderVisible()) { %> + <%= renderHeader() %> +<% } %> + +<%= getContentHtml() %> + +<%= renderFooter() %> + +
diff --git a/etherpad/src/themes/default/html.ejs b/etherpad/src/themes/default/html.ejs new file mode 100644 index 0000000..056d7a7 --- /dev/null +++ b/etherpad/src/themes/default/html.ejs @@ -0,0 +1,43 @@ +<% /* 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.robotsMeta() %> + <%= helpers.htmlTitle() %> + + + + <%= helpers.cssIncludes() %> + + <%= helpers.headExtra() %> + + + + + + <%= bodyHtml %> + + + +<%= helpers.clientVarsScript() %> +<%= helpers.jsIncludes() %> +<%= helpers.googleAnalytics() %> + + + diff --git a/etherpad/src/themes/default/main/home.ejs b/etherpad/src/themes/default/main/home.ejs new file mode 100644 index 0000000..aa5d934 --- /dev/null +++ b/etherpad/src/themes/default/main/home.ejs @@ -0,0 +1,36 @@ +<% /* +Copyright 2009 Google Inc. +Copyright 2010 Pita, Peter Martischka + +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: Open-Sourced!"); %> + +<% helpers.includeCss("home-opensource.css"); %> + +
+
+ EtherPad: Open-Sourced! +
+ +
+ + Create new pad + + <% if (isProAccountEnabled()) { %> + + Create team site + + <% } %> +
+
+ + diff --git a/etherpad/src/themes/default/main/pro_signup_body.ejs b/etherpad/src/themes/default/main/pro_signup_body.ejs new file mode 100644 index 0000000..e984878 --- /dev/null +++ b/etherpad/src/themes/default/main/pro_signup_body.ejs @@ -0,0 +1,70 @@ +<% /* 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.includeCss('pro-signup.css') %> + +
+ +
+ diff --git a/etherpad/src/themes/default/misc/pad_default.ejs b/etherpad/src/themes/default/misc/pad_default.ejs new file mode 100644 index 0000000..96b7e25 --- /dev/null +++ b/etherpad/src/themes/default/misc/pad_default.ejs @@ -0,0 +1,16 @@ +<% /* 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. */ %> +Welcome to EtherPad! + +This pad text is synchronized as you type, so that everyone viewing this page sees the same text. This allows you to collaborate seamlessly on documents! diff --git a/etherpad/src/themes/default/notice.ejs b/etherpad/src/themes/default/notice.ejs new file mode 100644 index 0000000..311694f --- /dev/null +++ b/etherpad/src/themes/default/notice.ejs @@ -0,0 +1,16 @@ +<% /* 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. */ %> +
+ <%= content %> +
diff --git a/etherpad/src/themes/default/pad/create_body.ejs b/etherpad/src/themes/default/pad/create_body.ejs new file mode 100644 index 0000000..5fec49a --- /dev/null +++ b/etherpad/src/themes/default/pad/create_body.ejs @@ -0,0 +1,26 @@ +<% /* 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: Create a new pad?"); %> + +
+
+ +

http://<%= request.host %>/<%= toHTML(padId) %>

+ +
+

There is no EtherPad document here. Would you like to create one?

+ + + +
+
diff --git a/etherpad/src/themes/default/pad/pad_body2.ejs b/etherpad/src/themes/default/pad/pad_body2.ejs new file mode 100644 index 0000000..a19e685 --- /dev/null +++ b/etherpad/src/themes/default/pad/pad_body2.ejs @@ -0,0 +1,499 @@ +<% /* +Copyright 2009 Google Inc. +Copyright 2010 Pita, Peter Martischka + +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. */ %> + +<% template.inherit('page.ejs') %> + +<% + helpers.setHtmlTitle("EtherPad: "+pageTitle); + helpers.includeJs("ace.js"); + helpers.includeJs("collab_client.js"); + helpers.includeJs("pad_userlist.js"); + helpers.includeJs("pad_chat.js"); + helpers.includeJs("pad_impexp.js"); + helpers.includeJs("pad_savedrevs.js"); + helpers.includeJs("pad_connectionstatus.js"); + + var padUrlAttrValue = request.url.split("?", 1)[0].replace(/\"/g, '"'); + + function exportLink(type, n, label, requiresOffice, url, title) { + url = url || '/ep/pad/export/'+localPadId+'/latest?format='+type; + var classes = ["exportlink", "exporthref"+type, "n"+n]; + if (requiresOffice && !hasOffice) { + classes.push("disabledexport"); + } + else { + classes.push("requiresoffice"); + } + var pieces = ['', label); + /* if (title) { + pieces.push('?'); + }*/ + pieces.push(''); + return pieces.join(''); + } +%> + + +<% template.define('docBarTitleEditor', function() { var ejs_data=''; %> + <% if (isProAccountHolder) { %> + + <% } /* isProAccountHolder */ %> + +
+ Save + Cancel +
+<% return ejs_data; }); %> + + +<% template.define('docBarItems', function() { var ejs_data=''; %> + <% if (isProAccountHolder) { %> + + + Security + + + <% } /* isProAccountHolder */ %> + + + Pad Options + + + + Import/Export + + + + Saved revisions + + + + Time Slider + +<% return ejs_data; }); %> + + +<% template.define('docBarDropdowns', function() { var ejs_data=''; %> +
+
+
+
+
+
+
+
+
+
+
+
+
+
Import from text file, HTML, Word, or RTF:
+
+
+ +
+
+
Successful!
+
+ + + + + + +
+
+
+
+
Export current pad as:
+ +
+
+
+ Hide +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + Save Now + +
+
+
+
+
+ +
+
+
+ Hide +
+
+
+
Saved: Revision 1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Shared view options:
+ + + + +
Display font:
+ +
These options affect everyone's view of the pad.
+ Hide +
+
+
+ <% if (isProAccountHolder) { %> +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Pad Access:
+ + + + +
+
+
Password:
+
+
+
None
+ Set... + Clear +
+
+ Save + Cancel + +
+
+
+ Hide +
+
+
+ <% } /* isProAccountHolder */ %> +<% return ejs_data; }); %> + + +<% template.define('sideBar', function() { var ejs_data=''; %> +
+
+
+
+ Connecting... +
+
+ Reestablishing connection... +
+
+

Disconnected.

+

Opened in another window.

+

No Authorization.

+
+

We're having trouble talking to the EtherPad synchronization server. + You may be connecting through an incompatible firewall or proxy server.

+
+
+

We were unable to connect to the EtherPad synchronization server. + This may be due to an incompatibility with your web + browser or internet connection.

+
+
+

You seem to have opened this pad in another browser window. + If you'd like to use this window instead, you can reconnect.

+
+
+

Lost connection with the EtherPad synchronization + server. This may be due to a loss of network connectivity.

+
+
+

Server not responding. This may be due to network connectivity issues or high load on the server.

+
+
+

Your browser's credentials or permissions have changed while viewing this pad. Try reconnecting.

+
+
+

If this continues to happen, please let us know + (opens in new window).

+
+
+ +
+
+
+
+ +
+ +
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Save
+
Cancel
+
+
+
+
+
+
+
+ + +
+
Invite other users and they will show up here.
+
+
+ Share +
+
+ +
+ +
+ +
+ Load more history... +
Loading history...
+
+
+
Chat:
+
+
+
+<% return ejs_data; }); %> + + +<% template.define('editBarItemsLeft', function() { var ejs_data=''; %> + + + + + + + +    + + + + + +    + + + + + + +    + + + + + +    + + + + + +<% return ejs_data; }); %> + + +<% template.define('editBarItemsRight', function() { var ejs_data=''; %> + + + +<% return ejs_data; }); %> + + +<% template.define('contentArea', function() { var ejs_data=''; %> +
Loading...
+
+<% return ejs_data; }); %> + + +<% template.define('modals', function() { var ejs_data=''; %> +
+ +
+
+
+
+
+
+
+ <%/* + + +
*/%> +
+
+

Great, we love feedback! What kind?

+ +

These links will open UserVoice in a new window.

+

You can also send email to feedback, support, or bugs at etherpad.com.

+
+
+ +
+
+
+ +
+
+ Public Pad: This pad is accessible to anyone who + visits its URL. To make it private, change security settings. +
+
+ Private Pad: This pad is only accessible to team account-holders. To allow anyone to access it, change security settings. +
+
+
+ +
or send an email invitation...
+ + + + + +
To
+
Subject
+
Message
+ +
+
+
+
+
+
+
+ + <% if (request.params.djs) { %> +
+ <% } %> + + + +<% return ejs_data; }); %> diff --git a/etherpad/src/themes/default/pad/pad_iphone_body.ejs b/etherpad/src/themes/default/pad/pad_iphone_body.ejs new file mode 100644 index 0000000..96279ce --- /dev/null +++ b/etherpad/src/themes/default/pad/pad_iphone_body.ejs @@ -0,0 +1,29 @@ +<% /* 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. */ %> +
+ +

EtherPad is not yet fully-functional on the iPhone.

+ + + View Read-Only + + + + Proceed to Editor
+ (may not be fully-functional) +
+ +
diff --git a/etherpad/src/themes/default/pad/padview_body.ejs b/etherpad/src/themes/default/pad/padview_body.ejs new file mode 100644 index 0000000..75c38fe --- /dev/null +++ b/etherpad/src/themes/default/pad/padview_body.ejs @@ -0,0 +1,143 @@ +<% /* 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.addBodyClass(bodyClass); + helpers.setHtmlTitle(toHTML(padId + " / " + rlabel)); + helpers.setBodyId("padviewbody"); + helpers.includeCss("broadcast.css"); + helpers.setRobotsPolicy({index: false, follow: false}) + helpers.includeJQuery(); + helpers.includeCometJs(); + helpers.includeJs("json2.js"); + helpers.includeJs("pad_utils.js"); + helpers.includeJs("broadcast_slider.js"); + helpers.includeJs("broadcast_revisions.js"); + helpers.includeJs("easysync2_client.js"); + helpers.includeJs("domline_client.js"); + helpers.includeJs("linestylefilter_client.js"); + helpers.includeJs("cssmanager_client.js"); + helpers.includeJs("broadcast.js"); + helpers.addToHead('\n\n'); + + function dfmt(t) { + var d = new Date(t); + return d.toString(); + } + + function exportOption(type, label, requiresOffice, url, title) { + url = url || '/ep/pad/export/'+padId+'/'+revisionId+'?format='+type; + var aStart = + [''].join(''); + var r = [''); + return r.join(''); + } +%> + +
+
+
+
+
+ EtherPad +
+<% if (isProAccountHolder) { %> +
<%= toHTML(account.email) %> + (sign out) +
+<% } else if (isPro) { %> +
+ sign in +
+<% } %> +
+ +
+ + +
+ +
style="font-size: 3em;" <% } %> +> +

<%= padTitle %>

<%= rlabel %>
+Saved +<%= ["Jan", "Feb", "March", "April", "May", "June", "July", "Aug", "Sept", "Oct", "Nov", "Dec"][new Date(savedWhen).getMonth()] %> +<%= new Date(savedWhen).getDate() %>, +<%= new Date(savedWhen).getFullYear() %> +
+
style="font-size: 1.3em;" <% } %> + > +<%= padHTML %>
+
+
diff --git a/etherpad/src/themes/default/page.ejs b/etherpad/src/themes/default/page.ejs new file mode 100644 index 0000000..7dd36ad --- /dev/null +++ b/etherpad/src/themes/default/page.ejs @@ -0,0 +1,139 @@ +<% /* +Copyright 2009 Google Inc. +Copyright 2010 Pita, Peter Martischka + +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.setBodyId("padbody"); + helpers.addBodyClass(bodyClass); + helpers.includeCss("pad2_ejs.css"); + helpers.includeJs("undo-xpopup.js"); + helpers.includeCometJs(); + helpers.includeJQuery();; + helpers.includeJs("json2.js"); + helpers.includeJs("colorutils.js"); + helpers.includeJs("draggable.js"); + helpers.includeJs("pad_utils.js"); + helpers.includeJs("pad_cookie.js"); + helpers.includeJs("pad_editor.js"); + helpers.includeJs("pad_editbar.js"); + helpers.includeJs("pad_docbar.js"); + helpers.includeJs("pad_modals.js"); + helpers.includeJs("pad2.js"); + helpers.suppressGA(); + helpers.setRobotsPolicy({index: false, follow: false}); + +%> + +<% template.define('body', function() { var ejs_data=''; %> +
+
+
+ <% /* floated left */ %> +
+ <% /* New Pad */ %> + <% /* floated right */ %> +
+ <% /* Toggle Width */ %> + <% /* non-floated */ %> +
+ EtherPad +
+ <% if (isProAccountHolder) { %> + Return to pad list +
<%= toHTML(account.email) %> + (sign out) +
+ <% } else if (isPro) { %> +
+ sign in +
+ <% } %> +
+
+
+
+

Server Notice:

+ hide +

+
+
+ +
+ <%: template.use('docBarTitle'); %> + + + + + + <% + plugins.callHookStr('docbarItemsAll', {}, '', ''); + plugins.callHookStr('docbarItemsPad', {}, '', ''); + %> + <%: template.use('docBarItems'); %> + + +
<%= initialTitle %> ', '', '
+ <%: template.use('docBarTitleEditor'); %> + <%: template.use('docBarDropdowns'); %> +
+
+ +
+
<%: template.use('sideBar'); %>
+ +
+
+ <% /* floated left */ %> +
+ <% /* floated right */ %> +
+ <% /* non-floated */ %> +
+ + + <%: template.use('editBarItemsLeft'); %> + + +
 
+ + + <%: template.use('editBarItemsRight'); %> + +
+
+
+
<%: template.use('contentArea'); %>
+
+ +
+
+
Zoom:
+ +
+ +
+
+
+ +
+ +
+ + <%: template.use('modals'); %> + +<% return ejs_data; }); %> diff --git a/etherpad/src/themes/default/pro-account/recover.ejs b/etherpad/src/themes/default/pro-account/recover.ejs new file mode 100644 index 0000000..686fe3b --- /dev/null +++ b/etherpad/src/themes/default/pro-account/recover.ejs @@ -0,0 +1,48 @@ +<% /* 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.includeCss("global-pro-account.css") %> + +
+ +
+ + diff --git a/etherpad/src/themes/default/pro-account/sign-in.ejs b/etherpad/src/themes/default/pro-account/sign-in.ejs new file mode 100644 index 0000000..470bbc4 --- /dev/null +++ b/etherpad/src/themes/default/pro-account/sign-in.ejs @@ -0,0 +1,57 @@ +<% /* 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.includeCss("global-pro-account.css") %> + +
+ +
+ + diff --git a/etherpad/src/themes/default/pro-help/main.ejs b/etherpad/src/themes/default/pro-help/main.ejs new file mode 100644 index 0000000..428d7f7 --- /dev/null +++ b/etherpad/src/themes/default/pro-help/main.ejs @@ -0,0 +1,35 @@ +<% /* 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. */ %> +

EtherPad Professional Edition Help

+ +

These pages are evolving. If you have any questions, or find +parts of EtherPad confusing, please write in to our Helpdesk by +emailing <%= helpers.oemail("support") %>.

+ +

Please report bugs to <%= helpers.oemail("bugs") %>.

+ +

Also note that you can also get help from other users in the UserVoice Community +Forums.

+ +

Help Topics:

+ +
    +<% helpTopics.forEach(function(t) { %> +
  • <%= A({href: "/ep/pro-help/"+t[0]}, t[1]) %>
  • +<% }); %> +
+ + + diff --git a/etherpad/src/themes/default/pro-help/pro-help-template.ejs b/etherpad/src/themes/default/pro-help/pro-help-template.ejs new file mode 100644 index 0000000..9cc8205 --- /dev/null +++ b/etherpad/src/themes/default/pro-help/pro-help-template.ejs @@ -0,0 +1,24 @@ +<% /* 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.includeJQuery() %> +<% helpers.includeJs("etherpad.js") %> +<% helpers.includeCss("pro-help.css") %> + +
+
+ <%= renderContent() %> +
+
+ + + diff --git a/etherpad/src/themes/default/pro/account/account-welcome-email.ejs b/etherpad/src/themes/default/pro/account/account-welcome-email.ejs new file mode 100644 index 0000000..25af6f8 --- /dev/null +++ b/etherpad/src/themes/default/pro/account/account-welcome-email.ejs @@ -0,0 +1,32 @@ +<% /* 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. */ %> +Dear <%= account.fullName %>, + +<% if (adminAccount) { %> +<%= adminAccount.fullName %> has created an EtherPad account for you on <%= +request.host %> (<%= siteName %>). You can sign in by clicking on the following link: +<% } else { %> +Thank you for signing up for EtherPad Professional Edition. You can sign in by clicking on the following link: +<% } %> + +<%= signinLink %> + +For help signing in, or general support issues, please email support@etherpad.com. + +-- +This email was sent to <%= toEmail %> from an EtherPad user. +If you received it in error, you may safely ignore it. +<%/* EtherPad's offices are located at Pier 38, The Embarcadero, +San Francisco, CA 94107 */%> + diff --git a/etherpad/src/themes/default/pro/account/forgot-password-email.ejs b/etherpad/src/themes/default/pro/account/forgot-password-email.ejs new file mode 100644 index 0000000..4595cee --- /dev/null +++ b/etherpad/src/themes/default/pro/account/forgot-password-email.ejs @@ -0,0 +1,22 @@ +<% /* 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. */ %> +Dear <%= account.fullName %>, + +We received a request to reset your EtherPad password. To proceed, click the following link: + +<%= recoverUrl %> + +If you did not request a password reset, simply ignore this email. + + diff --git a/etherpad/src/themes/default/pro/account/forgot-password.ejs b/etherpad/src/themes/default/pro/account/forgot-password.ejs new file mode 100644 index 0000000..bbc78dd --- /dev/null +++ b/etherpad/src/themes/default/pro/account/forgot-password.ejs @@ -0,0 +1,66 @@ +<% /* 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.includeCss("pro/account.css") %> +<% helpers.setHtmlTitle("EtherPad: Forgot Password") %> + +
+ +
+ diff --git a/etherpad/src/themes/default/pro/account/my-account.ejs b/etherpad/src/themes/default/pro/account/my-account.ejs new file mode 100644 index 0000000..9634285 --- /dev/null +++ b/etherpad/src/themes/default/pro/account/my-account.ejs @@ -0,0 +1,67 @@ +<% /* 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.includeCss("pro/account.css") %> +<% helpers.setHtmlTitle("EtherPad: My Account") %> + +
+ +
+ diff --git a/etherpad/src/themes/default/pro/account/signin.ejs b/etherpad/src/themes/default/pro/account/signin.ejs new file mode 100644 index 0000000..c67bea6 --- /dev/null +++ b/etherpad/src/themes/default/pro/account/signin.ejs @@ -0,0 +1,81 @@ +<% /* 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.includeJQuery() %> +<% helpers.includeJs("pro/signin-client.js") %> +<% helpers.includeCss("pro/account.css") %> +<% helpers.setHtmlTitle("EtherPad: Sign In") %> + +
+ +
+ diff --git a/etherpad/src/themes/default/pro/admin/account-manager.ejs b/etherpad/src/themes/default/pro/admin/account-manager.ejs new file mode 100644 index 0000000..f1b443f --- /dev/null +++ b/etherpad/src/themes/default/pro/admin/account-manager.ejs @@ -0,0 +1,59 @@ +<% /* 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. */ %> +<% function fmtdate(d) { + if (!d) { + return "Never"; + } else { + return d.toString().split(' ').slice(0,5).join(' '); + } +} %> + +

Accounts

+ +
+ + <%= messageDiv() %> + <%= warningDiv() %> + +

Create new account

+ + <% function renderAccountRow(u) { + var name = u.fullName; + return TR(TD(name), + TD(u.email), + TD(u.isAdmin ? 'Admin' : ''), + TD(fmtdate(u.lastLoginDate)), + TD(A({href: request.path + "account/"+u.id}, "Manage"))) + } + %> + + + + + + + + + + + <% accountList.forEach(function(u) { %> + <%= renderAccountRow(u) %> + <% }); %> + +
NameEmailRoleLast Signed In 
+ + + +
+ diff --git a/etherpad/src/themes/default/pro/admin/admin-template.ejs b/etherpad/src/themes/default/pro/admin/admin-template.ejs new file mode 100644 index 0000000..0964e33 --- /dev/null +++ b/etherpad/src/themes/default/pro/admin/admin-template.ejs @@ -0,0 +1,31 @@ +<% /* 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 Administration") %> +<% helpers.includeCss("pro/pro-admin.css") %> + +
+ + + + + +
+ <%= renderAdminLeftNav() %> + + <%= getAdminContent() %> +
+ +
+ + + diff --git a/etherpad/src/themes/default/pro/admin/delete-account.ejs b/etherpad/src/themes/default/pro/admin/delete-account.ejs new file mode 100644 index 0000000..3de2122 --- /dev/null +++ b/etherpad/src/themes/default/pro/admin/delete-account.ejs @@ -0,0 +1,35 @@ +<% /* 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. */ %>
+ +

Delete Account

+ + <%= errorDiv() %> + +
Do you really want to delete this account?
+ + + +
+ +      + +
+ +
When an account is deleted, some references to it may remain on the + site. For example, edits to pads by the deleted account will remain in the + pad's history. However, the deleted account will no longer be able to + sign in, and will not be counted toward your monthly quota.
+ +
+ diff --git a/etherpad/src/themes/default/pro/admin/manage-account.ejs b/etherpad/src/themes/default/pro/admin/manage-account.ejs new file mode 100644 index 0000000..72529b4 --- /dev/null +++ b/etherpad/src/themes/default/pro/admin/manage-account.ejs @@ -0,0 +1,64 @@ +<% /* 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. */ %> +

Manage Account

+ +
+ + <%= errorDiv() %> + +
+ + + + + + + + + + + + + + + + + + + + + + +
Email:
Full Name:
+ + /> +
+ Delete Account +
+ +
+ + +
+ +
+ +
+ + + diff --git a/etherpad/src/themes/default/pro/admin/new-account.ejs b/etherpad/src/themes/default/pro/admin/new-account.ejs new file mode 100644 index 0000000..2f2cccf --- /dev/null +++ b/etherpad/src/themes/default/pro/admin/new-account.ejs @@ -0,0 +1,86 @@ +<% /* 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. */ %><% function formField(id, label, type) { + if (!type) { type = "text"; } + var val = (oldData[id] || ""); + + var d = DIV({className: "formfield"}); + + if (type == "checkbox") { + d.push(INPUT({type: type, + id: id, + name: id, + className: type+"input", + checked: (oldData[id] ? true : undefined)}), + LABEL({htmlFor: id, className: type+"label"}, label)); + d.push(html('
')); + } else if (type == "text") { + d.push(LABEL({className: type+"label", htmlFor: id}, label), + INPUT({className: type+"input", + type: type, + id: id, + name: id, + maxlength: 80, + value: val})); + } else if (type == "temppass") { + if (!val) { + val = stringutils.randomString(6).toUpperCase(); + } + d.push(LABEL({className: type+"label", htmlFor: id}, label), + INPUT({className: type+"input", + type: "text", + id: id, + name: id, + maxlength: 80, + value: val + })); + } + + return d; +} %> + +

Add new account

+ +
+ + <%= errorDiv() %> + +
+ + +

+
+ + +
+ +
+ +

An email will be sent to this account with a link to sign in. + They will be prompted to change their password the first time they sign in.

+

+ +
+ + + + diff --git a/etherpad/src/themes/default/pro/padlist/pro-padlist.ejs b/etherpad/src/themes/default/pro/padlist/pro-padlist.ejs new file mode 100644 index 0000000..b762679 --- /dev/null +++ b/etherpad/src/themes/default/pro/padlist/pro-padlist.ejs @@ -0,0 +1,49 @@ +<% /* 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.includeCss("lib/jquery.contextmenu.css") %> +<% helpers.includeCss("pro/padlist.css") %> + +<% helpers.includeJQuery() %> +<% helpers.includeJs("lib/jquery.contextmenu.js") %> +<% helpers.includeJs("pro/pro-padlist-client.js") %> + +<% helpers.setHtmlTitle("Pad List - " + orgName + " - EtherPad") %> + +
+ + <%= renderPadNav() %> + <%= renderNotice() %> + <%= renderShowingDesc(padList.length) %> + + <% if (padList.length > 0) { %> + <%= renderPadList() %> +

<%= padList.length %> pad<% if (padList.length > 1) { %>s<% } %> <% if (isAdmin) { %>(Download all pads as a ZIP archive.) <% } %> +

+ + <% } else { %> +

No pads in this list.

+ <% } %> + +
+ + + + + + diff --git a/etherpad/src/themes/default/pro/pro_home.ejs b/etherpad/src/themes/default/pro/pro_home.ejs new file mode 100644 index 0000000..8d92139 --- /dev/null +++ b/etherpad/src/themes/default/pro/pro_home.ejs @@ -0,0 +1,110 @@ +<% /* 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(orgName + " - EtherPad"); %> +<% helpers.includeJQuery() %> +<% helpers.includeJs("etherpad.js") %> +<% helpers.includeCss("pro/pro-home.css"); %> +<% helpers.includeCss("pro/padlist.css"); %> + +
+ +
+ Welcome <%= account.fullName %> + <% if (account.isAdmin) { %>(Administrator)<% } %> +
+
+
+ + +
+ + Create new pad + + + <% if (livePads.length > 0) { %> +
+

Live Pads (currently being edited)

+
+ <%= renderLivePads() %> +
+
+ <% } %> + + <% if (recentPads.length > 0) { %> +
+

Your Recent Pads:

+
+ <%= renderRecentPads() %> +
+ View all pads... +
+
+ <% } %> + +
+ +
+
+ Latest News +
+ +
+
+ June 17th, 2009 +
+
+
+ +
+

Welcome to your EtherPad Beta Account! Please report bugs by + sending email to <%= helpers.oemail("bugs") %>. You can also give us + feedback and feature suggestions via UserVoice.

+ +

If you have any questions, just email <%= + helpers.oemail("support") %> and + we will respond to your inquiries.

+ +

We hope you enjoy EtherPad!

+ +

Sincerely,

+ +

Aaron Iba
+ CEO, AppJet Inc. +

+
+ +
+ + +
+ + <%= helpers.clearFloats() %> + + <% if (isPNE) { %> +
+
+ EtherPad Private Network Edition (PNE) + Version <%= pneVersion %>
+ + <% if (isEvaluation && evalExpDate) { %> +
+ EVALUATION EDITION: Expires <%= evalExpDate.toString() + %>.
+ <% } %> +
+ <% } %> + +
+ -- cgit v1.2.3-1-g7c22