From d7c5ad7d6263fd1baf9bfdbaa4c50b70ef2fbdb2 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Tue, 8 Jun 2010 08:22:05 +0200 Subject: reverted folder structure change for better mergeing with upstream --- trunk/etherpad/src/templates/500_body.ejs | 26 ++ trunk/etherpad/src/templates/beta/signup.ejs | 63 +++ .../src/templates/email/eepnet_license_info.ejs | 72 ++++ .../templates/email/eepnet_purchase_receipt.ejs | 93 ++++ trunk/etherpad/src/templates/email/padinvite.ejs | 18 + .../src/templates/email/pro_beta_invite.ejs | 23 + .../src/templates/email/pro_payment_failure.ejs | 26 ++ .../src/templates/email/pro_payment_receipt.ejs | 55 +++ .../etherpad/src/templates/framed/framedfooter.ejs | 13 + .../src/templates/framed/framedheader-pro.ejs | 76 ++++ .../etherpad/src/templates/framed/framedheader.ejs | 13 + .../src/templates/framed/framedpage-pro.ejs | 31 ++ trunk/etherpad/src/templates/framed/framedpage.ejs | 37 ++ trunk/etherpad/src/templates/html.ejs | 43 ++ trunk/etherpad/src/templates/main/home.ejs | 58 +++ .../src/templates/main/pro_signup_body.ejs | 71 ++++ trunk/etherpad/src/templates/misc/pad_default.ejs | 16 + trunk/etherpad/src/templates/notice.ejs | 16 + trunk/etherpad/src/templates/pad/create_body.ejs | 26 ++ .../src/templates/pad/create_body_rafter.ejs | 23 + trunk/etherpad/src/templates/pad/exporthtml.ejs | 28 ++ trunk/etherpad/src/templates/pad/pad_body.ejs | 69 +++ trunk/etherpad/src/templates/pad/pad_body2.ejs | 472 +++++++++++++++++++++ trunk/etherpad/src/templates/pad/pad_content.ejs | 297 +++++++++++++ .../src/templates/pad/pad_download_link.ejs | 27 ++ .../etherpad/src/templates/pad/pad_iphone_body.ejs | 29 ++ trunk/etherpad/src/templates/pad/padfull_body.ejs | 32 ++ .../etherpad/src/templates/pad/padslider_body.ejs | 41 ++ trunk/etherpad/src/templates/pad/padview_body.ejs | 141 ++++++ .../src/templates/pad/total_users_exceeded.ejs | 29 ++ .../etherpad/src/templates/pro-account/recover.ejs | 48 +++ .../etherpad/src/templates/pro-account/sign-in.ejs | 57 +++ .../pro/account/account-welcome-email.ejs | 32 ++ .../templates/pro/account/create-admin-account.ejs | 37 ++ .../pro/account/forgot-password-email.ejs | 22 + .../src/templates/pro/account/forgot-password.ejs | 66 +++ .../account/global-multi-domain-recover-email.ejs | 27 ++ .../src/templates/pro/account/guest-knock.ejs | 27 ++ .../src/templates/pro/account/my-account.ejs | 67 +++ .../src/templates/pro/account/signin-guest.ejs | 51 +++ .../etherpad/src/templates/pro/account/signin.ejs | 81 ++++ .../src/templates/pro/admin/account-manager.ejs | 59 +++ .../src/templates/pro/admin/admin-template.ejs | 31 ++ trunk/etherpad/src/templates/pro/admin/admin.ejs | 15 + .../src/templates/pro/admin/billing-invoices.ejs | 45 ++ .../src/templates/pro/admin/delete-account.ejs | 35 ++ .../src/templates/pro/admin/manage-account.ejs | 64 +++ .../src/templates/pro/admin/manage-billing.ejs | 35 ++ .../src/templates/pro/admin/new-account.ejs | 86 ++++ .../src/templates/pro/admin/pne-config.ejs | 33 ++ .../src/templates/pro/admin/pne-dashboard.ejs | 40 ++ .../templates/pro/admin/pne-license-manager.ejs | 132 ++++++ .../etherpad/src/templates/pro/admin/pne-shell.ejs | 33 ++ .../src/templates/pro/admin/pro-config.ejs | 55 +++ .../src/templates/pro/admin/single-invoice.ejs | 47 ++ .../src/templates/pro/padlist/pro-padlist.ejs | 49 +++ .../src/templates/pro/pro-payment-required.ejs | 51 +++ trunk/etherpad/src/templates/pro/pro_home.ejs | 103 +++++ .../src/templates/statistics/stat_page.ejs | 89 ++++ trunk/etherpad/src/templates/store/csc-help.ejs | 23 + .../store/eepnet-checkout/billing-info.ejs | 183 ++++++++ .../src/templates/store/eepnet-checkout/cart.ejs | 119 ++++++ .../store/eepnet-checkout/checkout-template.ejs | 38 ++ .../store/eepnet-checkout/confirmation.ejs | 33 ++ .../store/eepnet-checkout/license-info.ejs | 40 ++ .../templates/store/eepnet-checkout/purchase.ejs | 33 ++ .../templates/store/eepnet-checkout/receipt.ejs | 43 ++ .../templates/store/eepnet-checkout/summary.ejs | 91 ++++ .../store/eepnet-checkout/support-contract.ejs | 41 ++ .../src/templates/store/eepnet_download.ejs | 43 ++ .../src/templates/store/eepnet_eval_nextsteps.ejs | 40 ++ .../src/templates/store/eepnet_eval_signup.ejs | 125 ++++++ 72 files changed, 4333 insertions(+) create mode 100644 trunk/etherpad/src/templates/500_body.ejs create mode 100644 trunk/etherpad/src/templates/beta/signup.ejs create mode 100644 trunk/etherpad/src/templates/email/eepnet_license_info.ejs create mode 100644 trunk/etherpad/src/templates/email/eepnet_purchase_receipt.ejs create mode 100644 trunk/etherpad/src/templates/email/padinvite.ejs create mode 100644 trunk/etherpad/src/templates/email/pro_beta_invite.ejs create mode 100644 trunk/etherpad/src/templates/email/pro_payment_failure.ejs create mode 100644 trunk/etherpad/src/templates/email/pro_payment_receipt.ejs create mode 100644 trunk/etherpad/src/templates/framed/framedfooter.ejs create mode 100644 trunk/etherpad/src/templates/framed/framedheader-pro.ejs create mode 100644 trunk/etherpad/src/templates/framed/framedheader.ejs create mode 100644 trunk/etherpad/src/templates/framed/framedpage-pro.ejs create mode 100644 trunk/etherpad/src/templates/framed/framedpage.ejs create mode 100644 trunk/etherpad/src/templates/html.ejs create mode 100644 trunk/etherpad/src/templates/main/home.ejs create mode 100644 trunk/etherpad/src/templates/main/pro_signup_body.ejs create mode 100644 trunk/etherpad/src/templates/misc/pad_default.ejs create mode 100644 trunk/etherpad/src/templates/notice.ejs create mode 100644 trunk/etherpad/src/templates/pad/create_body.ejs create mode 100644 trunk/etherpad/src/templates/pad/create_body_rafter.ejs create mode 100644 trunk/etherpad/src/templates/pad/exporthtml.ejs create mode 100644 trunk/etherpad/src/templates/pad/pad_body.ejs create mode 100644 trunk/etherpad/src/templates/pad/pad_body2.ejs create mode 100644 trunk/etherpad/src/templates/pad/pad_content.ejs create mode 100644 trunk/etherpad/src/templates/pad/pad_download_link.ejs create mode 100644 trunk/etherpad/src/templates/pad/pad_iphone_body.ejs create mode 100644 trunk/etherpad/src/templates/pad/padfull_body.ejs create mode 100644 trunk/etherpad/src/templates/pad/padslider_body.ejs create mode 100644 trunk/etherpad/src/templates/pad/padview_body.ejs create mode 100644 trunk/etherpad/src/templates/pad/total_users_exceeded.ejs create mode 100644 trunk/etherpad/src/templates/pro-account/recover.ejs create mode 100644 trunk/etherpad/src/templates/pro-account/sign-in.ejs create mode 100644 trunk/etherpad/src/templates/pro/account/account-welcome-email.ejs create mode 100644 trunk/etherpad/src/templates/pro/account/create-admin-account.ejs create mode 100644 trunk/etherpad/src/templates/pro/account/forgot-password-email.ejs create mode 100644 trunk/etherpad/src/templates/pro/account/forgot-password.ejs create mode 100644 trunk/etherpad/src/templates/pro/account/global-multi-domain-recover-email.ejs create mode 100644 trunk/etherpad/src/templates/pro/account/guest-knock.ejs create mode 100644 trunk/etherpad/src/templates/pro/account/my-account.ejs create mode 100644 trunk/etherpad/src/templates/pro/account/signin-guest.ejs create mode 100644 trunk/etherpad/src/templates/pro/account/signin.ejs create mode 100644 trunk/etherpad/src/templates/pro/admin/account-manager.ejs create mode 100644 trunk/etherpad/src/templates/pro/admin/admin-template.ejs create mode 100644 trunk/etherpad/src/templates/pro/admin/admin.ejs create mode 100644 trunk/etherpad/src/templates/pro/admin/billing-invoices.ejs create mode 100644 trunk/etherpad/src/templates/pro/admin/delete-account.ejs create mode 100644 trunk/etherpad/src/templates/pro/admin/manage-account.ejs create mode 100644 trunk/etherpad/src/templates/pro/admin/manage-billing.ejs create mode 100644 trunk/etherpad/src/templates/pro/admin/new-account.ejs create mode 100644 trunk/etherpad/src/templates/pro/admin/pne-config.ejs create mode 100644 trunk/etherpad/src/templates/pro/admin/pne-dashboard.ejs create mode 100644 trunk/etherpad/src/templates/pro/admin/pne-license-manager.ejs create mode 100644 trunk/etherpad/src/templates/pro/admin/pne-shell.ejs create mode 100644 trunk/etherpad/src/templates/pro/admin/pro-config.ejs create mode 100644 trunk/etherpad/src/templates/pro/admin/single-invoice.ejs create mode 100644 trunk/etherpad/src/templates/pro/padlist/pro-padlist.ejs create mode 100644 trunk/etherpad/src/templates/pro/pro-payment-required.ejs create mode 100644 trunk/etherpad/src/templates/pro/pro_home.ejs create mode 100644 trunk/etherpad/src/templates/statistics/stat_page.ejs create mode 100644 trunk/etherpad/src/templates/store/csc-help.ejs create mode 100644 trunk/etherpad/src/templates/store/eepnet-checkout/billing-info.ejs create mode 100644 trunk/etherpad/src/templates/store/eepnet-checkout/cart.ejs create mode 100644 trunk/etherpad/src/templates/store/eepnet-checkout/checkout-template.ejs create mode 100644 trunk/etherpad/src/templates/store/eepnet-checkout/confirmation.ejs create mode 100644 trunk/etherpad/src/templates/store/eepnet-checkout/license-info.ejs create mode 100644 trunk/etherpad/src/templates/store/eepnet-checkout/purchase.ejs create mode 100644 trunk/etherpad/src/templates/store/eepnet-checkout/receipt.ejs create mode 100644 trunk/etherpad/src/templates/store/eepnet-checkout/summary.ejs create mode 100644 trunk/etherpad/src/templates/store/eepnet-checkout/support-contract.ejs create mode 100644 trunk/etherpad/src/templates/store/eepnet_download.ejs create mode 100644 trunk/etherpad/src/templates/store/eepnet_eval_nextsteps.ejs create mode 100644 trunk/etherpad/src/templates/store/eepnet_eval_signup.ejs (limited to 'trunk/etherpad/src/templates') diff --git a/trunk/etherpad/src/templates/500_body.ejs b/trunk/etherpad/src/templates/500_body.ejs new file mode 100644 index 0000000..34549ed --- /dev/null +++ b/trunk/etherpad/src/templates/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@pad.spline.inf.fu-berlin.de> if this persists.

+
+
+<% } %> + diff --git a/trunk/etherpad/src/templates/beta/signup.ejs b/trunk/etherpad/src/templates/beta/signup.ejs new file mode 100644 index 0000000..5268a29 --- /dev/null +++ b/trunk/etherpad/src/templates/beta/signup.ejs @@ -0,0 +1,63 @@ +<% /* 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("beta.css") %> + +
+ +
+ + diff --git a/trunk/etherpad/src/templates/email/eepnet_license_info.ejs b/trunk/etherpad/src/templates/email/eepnet_license_info.ejs new file mode 100644 index 0000000..85556c7 --- /dev/null +++ b/trunk/etherpad/src/templates/email/eepnet_license_info.ejs @@ -0,0 +1,72 @@ +<% /* 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. */ %><% + var parts = licenseKey.split(":"); + var name = parts[0]; + var org = parts[1]; + var key = parts[2]; + + if ((key.length % 2) != 0) { + key = key + "+"; + } + var keyLine1 = key.substr(0, key.length/2); + var keyLine2 = key.substr(key.length/2, key.length); +%> +Dear <%= userName %>, + +Thank you for downloading EtherPad Private Network Edition. +This is an automated email containing your license information. + +<% if (isEvaluation) { %> +NOTE: This is an EVALUATION license, which will expire on +<%= expiresDate.toString() %>. +<% } %> + +**************************************** +NAME: + + <%= name %> + +**************************************** +ORGANIZATION: + + <%= org %> + +**************************************** +LICENSE KEY: + + <%= keyLine1 %> + <%= keyLine2 %> + +**************************************** +INSTRUCTIONS: + + http://<%= request.host %>/ep/pne-manual + +**************************************** +DOWNLOAD LINK: + + http://<%= request.host %><%= isEvaluation ? "/ep/store/eepnet-download" : "/ep/store/eepnet-download-nextsteps" %> + +<% if (isEvaluation) { %> +-- + +This email was sent automatically from pad.spline.inf.fu-berlin.de because you signed +up for EtherPad PNE. If you did not sign up for +this, then you can safely just ignore this email. + +<% } else { %> +-- + +Thanks for buying EtherPad! +<% } %> \ No newline at end of file diff --git a/trunk/etherpad/src/templates/email/eepnet_purchase_receipt.ejs b/trunk/etherpad/src/templates/email/eepnet_purchase_receipt.ejs new file mode 100644 index 0000000..a83cd58 --- /dev/null +++ b/trunk/etherpad/src/templates/email/eepnet_purchase_receipt.ejs @@ -0,0 +1,93 @@ +<% /* 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 <%= cart.ownerName %>, + +Thank you for your purchase of EtherPad Private Network Edition. This is your receipt. Please keep this email for your records. + +-- The EtherPad Staff + +<% +function row(key, value) { +%><%= key %>: + <%= String(value).split("\n").join("\n ") %> +<% +} + +function $(cost) { + return "US $"+dollars(cost); +} +%> + +License Information: + +<% +row("Administrator Name", cart.ownerName) +row("Organization Name", cart.orgName) +row("Total Users", cart.userCount) +%> + +Billing Information: + +<% +var isUs = cart.billingCountry == "US"; +switch(cart.billingPurchaseType) { + case "creditcard": + row("Credit Card Number", obfuscateCC(cart.billingCCNumber)); + row("Expiration Date", cart.billingExpirationMonth+" / 20"+cart.billingExpirationYear); + // falling through here intentional. + case "invoice": + row("Purchaser Name", cart.billingFirstName + " " + cart.billingLastName); + row("Purchaser Address", cart.billingAddressLine1 + "\n" + + (cart.billingAddressLine2 ? cart.billingAddressLine2 + "\n" : "") + + cart.billingCity + ", " + + (isUs?cart.billingState:cart.billingProvince) + "\n" + + (isUs?cart.billingZipCode:cart.billingPostalCode)+ + (isUs?'':', '+cart.billingCountry)); + row("Invoice Number", cart.invoiceId); + break; + case "paypal": + row("Paid Using", "PayPal"); + row("Invoice Number", cart.invoiceId); +} +%> + +Summary of Charges: + +<% +row("Etherpad Private Network, "+cart.numUsers+" users", $(cart.baseCost)); +if (cart.couponProductPctDiscount) { + row("Referral - "+cart.couponProductPctDiscount+"% savings", + "-"+$(cart.productReferralDiscount)); +} +if (cart.supportCost) { + row("Support Contract, 1 year", $(cart.supportCost)); + if (cart.couponSupportPctDiscount) { + row("Referral - "+cart.couponSupportPctDiscount+"% savings", + "-"+$(cart.supportReferralDiscount)); + } +} +if (cart.freeUserCount) { + row("Referral Bonus - "+cart.freeUserCount+" free user"+(cart.freeUserCount == 1 ? '' : "s"), + "US$0.00"); +} +%>------------------------------------------------------------------------------- +<% +var pctDiscount = cart.couponTotalPctDiscount; +var hasSubtotal = pctDiscount > 0; + +if (hasSubtotal) { + row("Subtotal", $(cart.subTotal)); + row("Referral - "+pctDiscount+"% savings", "-"+$(cart.totalReferralDiscount)); +} +row("Total", $(cart.total)); +%> \ No newline at end of file diff --git a/trunk/etherpad/src/templates/email/padinvite.ejs b/trunk/etherpad/src/templates/email/padinvite.ejs new file mode 100644 index 0000000..0f729e3 --- /dev/null +++ b/trunk/etherpad/src/templates/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@pad.spline.inf.fu-berlin.de diff --git a/trunk/etherpad/src/templates/email/pro_beta_invite.ejs b/trunk/etherpad/src/templates/email/pro_beta_invite.ejs new file mode 100644 index 0000000..162b443 --- /dev/null +++ b/trunk/etherpad/src/templates/email/pro_beta_invite.ejs @@ -0,0 +1,23 @@ +<% /* 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 <%= toAddr.split('@')[0] %>, + +<%= signupAgo %> you signed up for the EtherPad Beta. Now here's a link to activate your account immediately: + +<%= activationUrl %> + +Any problems or questions? Just respond to this email for help. + +Happy Collaborating! + +The EtherPad Team diff --git a/trunk/etherpad/src/templates/email/pro_payment_failure.ejs b/trunk/etherpad/src/templates/email/pro_payment_failure.ejs new file mode 100644 index 0000000..248a3dd --- /dev/null +++ b/trunk/etherpad/src/templates/email/pro_payment_failure.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. */ %>Dear <%= fullName %>, + +Thank you for using EtherPad Professional. Your monthly billing cycle has ended, but we were unsuccessful in charging your account on file. + +<% if (billingError && billingError.length > 0) { %> + The following error occurred: + + <%= billingError %> + +<% } %>If you do not update your payment information and pay the remaining balance of <%= balance %>, your account will be suspended on <%= suspensionDate %>. + +You may update your payment information here: <%= billingAdminLink %> + +-- The EtherPad Staff diff --git a/trunk/etherpad/src/templates/email/pro_payment_receipt.ejs b/trunk/etherpad/src/templates/email/pro_payment_receipt.ejs new file mode 100644 index 0000000..175b06a --- /dev/null +++ b/trunk/etherpad/src/templates/email/pro_payment_receipt.ejs @@ -0,0 +1,55 @@ +<% /* 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 <%= fullName %>, + +Thank you for using EtherPad Professional. Your monthly billing cycle has ended, and your account has been charged; this is your receipt. Please keep this email for your records. + +-- The EtherPad Staff + +<% +function row(key, value) { +%><%= key %>: + <%= String(value).split("\n").join("\n ") %> +<% +} + +function $(cost) { + return "US $"+dollars(cost); +} +%> + +Billing Information: + +<% +row("Name", fullName); +row("Paid Using", paymentSummary); +row("Expiration", expiration); +row("Invoice Number", invoiceNumber); +%> + +Summary of Charges: + +<% +row("EtherPad Professional, "+numUsers+" users", $(cost)); +if (coupon) { + var discount = []; + if (coupon.pctDiscount) { + discount.push(coupon.pctDiscount+"% savings"); + } + if (coupon.freeUsers) { + discount.push((coupon.freeUsers)+" free users"); + } + discount = discount.join(" and "); + %> +This charge reflects your referral bonus of <%= discount %>. +<% } %> \ No newline at end of file diff --git a/trunk/etherpad/src/templates/framed/framedfooter.ejs b/trunk/etherpad/src/templates/framed/framedfooter.ejs new file mode 100644 index 0000000..7994e38 --- /dev/null +++ b/trunk/etherpad/src/templates/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/trunk/etherpad/src/templates/framed/framedheader-pro.ejs b/trunk/etherpad/src/templates/framed/framedheader-pro.ejs new file mode 100644 index 0000000..fac9eee --- /dev/null +++ b/trunk/etherpad/src/templates/framed/framedheader-pro.ejs @@ -0,0 +1,76 @@ +<% /* 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("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'], + ]; + 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/trunk/etherpad/src/templates/framed/framedheader.ejs b/trunk/etherpad/src/templates/framed/framedheader.ejs new file mode 100644 index 0000000..d6c25cb --- /dev/null +++ b/trunk/etherpad/src/templates/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/trunk/etherpad/src/templates/framed/framedpage-pro.ejs b/trunk/etherpad/src/templates/framed/framedpage-pro.ejs new file mode 100644 index 0000000..b3acb07 --- /dev/null +++ b/trunk/etherpad/src/templates/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/trunk/etherpad/src/templates/framed/framedpage.ejs b/trunk/etherpad/src/templates/framed/framedpage.ejs new file mode 100644 index 0000000..b1590f8 --- /dev/null +++ b/trunk/etherpad/src/templates/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/trunk/etherpad/src/templates/html.ejs b/trunk/etherpad/src/templates/html.ejs new file mode 100644 index 0000000..056d7a7 --- /dev/null +++ b/trunk/etherpad/src/templates/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/trunk/etherpad/src/templates/main/home.ejs b/trunk/etherpad/src/templates/main/home.ejs new file mode 100644 index 0000000..495cf77 --- /dev/null +++ b/trunk/etherpad/src/templates/main/home.ejs @@ -0,0 +1,58 @@ +<% /* 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("SplinePad [beta]: Open-Sourced!"); %> + +<% helpers.includeCss("home-opensource.css"); %> + +
+
+ SplinePad +
+ + + +
+

+ Terms of service and Privacy notice +

+ +

+ Privacy: We guarantee that we will not intentionally hand + over your data to any third party. +

+ +

+ Terms: By using splinepad, you certify to agree to the + following terms of service: We are not responsible, and cannot + be held liable for any loss or damages that may be caused by the + result of our service. +

+ +

+ In short: We love the "Datenschutzgesetz" and if + something is wrong, we didn't do it. +

+ + Have fun with splinepad. +
+ +
+ + diff --git a/trunk/etherpad/src/templates/main/pro_signup_body.ejs b/trunk/etherpad/src/templates/main/pro_signup_body.ejs new file mode 100644 index 0000000..ff35dfc --- /dev/null +++ b/trunk/etherpad/src/templates/main/pro_signup_body.ejs @@ -0,0 +1,71 @@ +<% /* 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/trunk/etherpad/src/templates/misc/pad_default.ejs b/trunk/etherpad/src/templates/misc/pad_default.ejs new file mode 100644 index 0000000..96b7e25 --- /dev/null +++ b/trunk/etherpad/src/templates/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/trunk/etherpad/src/templates/notice.ejs b/trunk/etherpad/src/templates/notice.ejs new file mode 100644 index 0000000..311694f --- /dev/null +++ b/trunk/etherpad/src/templates/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/trunk/etherpad/src/templates/pad/create_body.ejs b/trunk/etherpad/src/templates/pad/create_body.ejs new file mode 100644 index 0000000..742821f --- /dev/null +++ b/trunk/etherpad/src/templates/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("SplinePad [beta]: Create a new pad?"); %> + +
+
+ +

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

+ +
+

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

+ + + +
+
diff --git a/trunk/etherpad/src/templates/pad/create_body_rafter.ejs b/trunk/etherpad/src/templates/pad/create_body_rafter.ejs new file mode 100644 index 0000000..28252c7 --- /dev/null +++ b/trunk/etherpad/src/templates/pad/create_body_rafter.ejs @@ -0,0 +1,23 @@ +<% /* 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.

+ +

Creation of new free pads is permanently disabled as part of EtherPad's acquisition by Google. Read more.

+ +
diff --git a/trunk/etherpad/src/templates/pad/exporthtml.ejs b/trunk/etherpad/src/templates/pad/exporthtml.ejs new file mode 100644 index 0000000..288a595 --- /dev/null +++ b/trunk/etherpad/src/templates/pad/exporthtml.ejs @@ -0,0 +1,28 @@ +<% /* 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. */ %> + + + + + + + +<%= pre ? '
' : '' %><%= content %><%= pre ? '
' : '' %> + + \ No newline at end of file diff --git a/trunk/etherpad/src/templates/pad/pad_body.ejs b/trunk/etherpad/src/templates/pad/pad_body.ejs new file mode 100644 index 0000000..d932cd6 --- /dev/null +++ b/trunk/etherpad/src/templates/pad/pad_body.ejs @@ -0,0 +1,69 @@ +<% /* 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. */ %><% + var padIdHtml = toHTML(request.url.split("?", 1)[0]); +%> + +<% helpers.setHtmlTitle("EtherPad: "+toHTML(proTitle || request.path.substr(1))); %> +<% helpers.setBodyId("padbody") %> +<% helpers.addBodyClass(bodyClass) %> +<% helpers.includeCss("pad.css") %> +<% helpers.includeJs("undo-xpopup.js") %> +<% helpers.includeCometJs() %> +<% helpers.includeJQuery(); %> +<% helpers.includeJs("json2.js") %> +<% helpers.includeJs("ace.js") %> +<% helpers.includeJs("collab_client.js") %> +<% helpers.includeJs("pad.js") %> +<% helpers.suppressGA() %> +<% helpers.setRobotsPolicy({index: false, follow: false}) %> + +
+ +
+
+
Foo.
+ + +
This is a modal dialog!
+
+
+ + + + + + + + + + + + + +
  + EtherPad +
+ +  <%= padIdHtml %> +
+ M + New Pad +
 
+
+ <%= contentHtml %> +
+
+ +
diff --git a/trunk/etherpad/src/templates/pad/pad_body2.ejs b/trunk/etherpad/src/templates/pad/pad_body2.ejs new file mode 100644 index 0000000..23b7adb --- /dev/null +++ b/trunk/etherpad/src/templates/pad/pad_body2.ejs @@ -0,0 +1,472 @@ +<% /* 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: "+pageTitle); %> +<% 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("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}) %> +<% + 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(''); + } +%> + +
+ +
+
+ <% /* 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 +

+
+
+ +
+
+
<%= initialTitle %>
+<% if (isProAccountHolder) { %> + +<% } /* isProAccountHolder */ %> + + + + +<% if (isProAccountHolder) { %> + +<% } /* isProAccountHolder */ %> + +
+ Save + Cancel +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Import from text file, HTML:
+
+
+ +
+
+
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 */ %> +
+
+ +
+
+
+
+
+
+ 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:
+
+
+
+
+ +
+
+ <% /* floated left */ %> +
+ <% /* floated right */ %> +
+ <% /* non-floated */ %> +
+   +   +   +   +   +   +   +   +   +   +   +   +   +   +   +   +
+
+   +
+
+
+
Loading...
+
+
+
+ +
+
+
Zoom:
+ +
+ +
+
+
+ +
+ +
+ +
+
+
+
+ +
+
+ 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) { %> +
+<% } %> + + diff --git a/trunk/etherpad/src/templates/pad/pad_content.ejs b/trunk/etherpad/src/templates/pad/pad_content.ejs new file mode 100644 index 0000000..4e25c7f --- /dev/null +++ b/trunk/etherpad/src/templates/pad/pad_content.ejs @@ -0,0 +1,297 @@ +<% /* 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 checkboxPref(name, label) { + var r = ['
']; + r.push(''); + r.push(''); + r.push(''); + r.push(''); + r.push(''); + r.push('
', label, '
'); + r.push('
'); + return r.join(''); + } + + function exportOption(type, label, requiresOffice, url, title) { + url = url || '/ep/pad/export/'+padId+'/latest?format='+type; + var classes = [ "exportlink", "exporthref"+type ]; + if (requiresOffice && !hasOffice) { + classes.push("disabledexport"); + } else if (requiresOffice) { + classes.push("requiresoffice"); + } + var aStartArr = [' 0) { + aStartArr.push(' class="'+classes.join(' ')+'"'); + } + aStartArr.push(' target="_blank" href="', url, '">'); + var aStart = aStartArr.join(''); + var r = [''); + return r.join(''); + } +%> + + + + + +
+ + + + + + + + + + +
+
Connecting...
+
 
+ + « show side bar + +
+ + hide » + +
+
+
+ Loading... +
+
+   +   +   +   +   +
Pad:    (rename)OK
+   +
+
+
+
View Zoom:
+
View Font:
+
+
+
+ +
+
+ +
+ +<% if (request.params.djs) { %> +
 
+<% } %> + +
+ Powered by AppJet + AppJet +
+ + + + diff --git a/trunk/etherpad/src/templates/pad/pad_download_link.ejs b/trunk/etherpad/src/templates/pad/pad_download_link.ejs new file mode 100644 index 0000000..e05d7d0 --- /dev/null +++ b/trunk/etherpad/src/templates/pad/pad_download_link.ejs @@ -0,0 +1,27 @@ +<% /* 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. */ %><% + +var host = request.host; +helpers.addToHead(''); + +%> + +
+

Etherpad

+ +

This pad document, <%= padId %>, is stored on <%= host %>. Please click the link below to access this pad.

+ + http://<%= host %>/<%= padId %> + +
\ No newline at end of file diff --git a/trunk/etherpad/src/templates/pad/pad_iphone_body.ejs b/trunk/etherpad/src/templates/pad/pad_iphone_body.ejs new file mode 100644 index 0000000..96279ce --- /dev/null +++ b/trunk/etherpad/src/templates/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/trunk/etherpad/src/templates/pad/padfull_body.ejs b/trunk/etherpad/src/templates/pad/padfull_body.ejs new file mode 100644 index 0000000..5f85b4e --- /dev/null +++ b/trunk/etherpad/src/templates/pad/padfull_body.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. */ %>
+ +

Pad is Full!

+ +
+ +
+

http://<%= request.host %>/<%= padId %>

+
+ +

Sorry, only <%= maxUsersPerPad %> people are allowed to edit a +single pad at the same time in the free version of EtherPad.

+ +

Please see our pricing plans for +information about having more than <%= maxUsersPerPad %> +collaborators.

+ +
+ +
diff --git a/trunk/etherpad/src/templates/pad/padslider_body.ejs b/trunk/etherpad/src/templates/pad/padslider_body.ejs new file mode 100644 index 0000000..51a9e84 --- /dev/null +++ b/trunk/etherpad/src/templates/pad/padslider_body.ejs @@ -0,0 +1,41 @@ +<% /* 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(toHTML("Time Slider")); + helpers.setBodyId("padsliderbody"); + helpers.includeCss("etherpad.css"); + //helpers.includeCss("jqueryui/theme/ui.all.css"); + helpers.setRobotsPolicy({index: false, follow: false}); + helpers.includeJQuery(); + //helpers.includeJs("jquery-ui-slider-1.5.3.js"); + helpers.includeJs("json2.js"); + helpers.includeJs("timeslider.js"); + + function dfmt(t) { + var d = new Date(t); + return d.toString(); + } +%> + + +

Powered by EtherPad.


+
+ / +     +play / +stop     +seek to # +
0 --- 0 --- 0
+
+ +
Loading...
diff --git a/trunk/etherpad/src/templates/pad/padview_body.ejs b/trunk/etherpad/src/templates/pad/padview_body.ejs new file mode 100644 index 0000000..e18ff12 --- /dev/null +++ b/trunk/etherpad/src/templates/pad/padview_body.ejs @@ -0,0 +1,141 @@ +<% /* 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/trunk/etherpad/src/templates/pad/total_users_exceeded.ejs b/trunk/etherpad/src/templates/pad/total_users_exceeded.ejs new file mode 100644 index 0000000..7ac7e1b --- /dev/null +++ b/trunk/etherpad/src/templates/pad/total_users_exceeded.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 Server Is Full

+ +

Sorry, this EtherPad server is only licensed to service + <%= userQuota %> active users + within a <%= activeUserWindowHours %>-hour period, + and that quota is currently full.

+ +

Please contact your server administrator and ask him or her to + purchase a license with additional users.

+ + « Home + +
+ diff --git a/trunk/etherpad/src/templates/pro-account/recover.ejs b/trunk/etherpad/src/templates/pro-account/recover.ejs new file mode 100644 index 0000000..686fe3b --- /dev/null +++ b/trunk/etherpad/src/templates/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/trunk/etherpad/src/templates/pro-account/sign-in.ejs b/trunk/etherpad/src/templates/pro-account/sign-in.ejs new file mode 100644 index 0000000..470bbc4 --- /dev/null +++ b/trunk/etherpad/src/templates/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/trunk/etherpad/src/templates/pro/account/account-welcome-email.ejs b/trunk/etherpad/src/templates/pro/account/account-welcome-email.ejs new file mode 100644 index 0000000..33e1ac5 --- /dev/null +++ b/trunk/etherpad/src/templates/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@pad.spline.inf.fu-berlin.de. + +-- +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/trunk/etherpad/src/templates/pro/account/create-admin-account.ejs b/trunk/etherpad/src/templates/pro/account/create-admin-account.ejs new file mode 100644 index 0000000..2a6c9f8 --- /dev/null +++ b/trunk/etherpad/src/templates/pro/account/create-admin-account.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.includeCss("pro/account.css") %> + +
+ +
+ diff --git a/trunk/etherpad/src/templates/pro/account/forgot-password-email.ejs b/trunk/etherpad/src/templates/pro/account/forgot-password-email.ejs new file mode 100644 index 0000000..4595cee --- /dev/null +++ b/trunk/etherpad/src/templates/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/trunk/etherpad/src/templates/pro/account/forgot-password.ejs b/trunk/etherpad/src/templates/pro/account/forgot-password.ejs new file mode 100644 index 0000000..bbc78dd --- /dev/null +++ b/trunk/etherpad/src/templates/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/trunk/etherpad/src/templates/pro/account/global-multi-domain-recover-email.ejs b/trunk/etherpad/src/templates/pro/account/global-multi-domain-recover-email.ejs new file mode 100644 index 0000000..d2eb4de --- /dev/null +++ b/trunk/etherpad/src/templates/pro/account/global-multi-domain-recover-email.ejs @@ -0,0 +1,27 @@ +<% /* 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 <%= accountList[0].fullName %>, + +We received a request to recover the EtherPad password for "<%= +email %>. We found multiple accounts linked to this email address. +Please choose one of the following URLs to proceed with recovering the +password for that EtherPad site: + +<% for (var i = 0; i < accountList.length; i++) { %> +<%= recoverLink(accountList[i], domainList[i]) %> +<% } %> + +-- +If you did not request a password reset, simply ignore this email. + diff --git a/trunk/etherpad/src/templates/pro/account/guest-knock.ejs b/trunk/etherpad/src/templates/pro/account/guest-knock.ejs new file mode 100644 index 0000000..44c69c0 --- /dev/null +++ b/trunk/etherpad/src/templates/pro/account/guest-knock.ejs @@ -0,0 +1,27 @@ +<% /* 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/guest-knock-client.js") %> +<% helpers.includeCss("pro/account.css") %> + +
+

+ + Waiting for approval... +

+
+ +
+ Access Denied. +
+ diff --git a/trunk/etherpad/src/templates/pro/account/my-account.ejs b/trunk/etherpad/src/templates/pro/account/my-account.ejs new file mode 100644 index 0000000..9634285 --- /dev/null +++ b/trunk/etherpad/src/templates/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/trunk/etherpad/src/templates/pro/account/signin-guest.ejs b/trunk/etherpad/src/templates/pro/account/signin-guest.ejs new file mode 100644 index 0000000..621c381 --- /dev/null +++ b/trunk/etherpad/src/templates/pro/account/signin-guest.ejs @@ -0,0 +1,51 @@ +<% /* 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.includeJQuery() %> +<% helpers.includeJs("pro/signin-client.js") %> +<% helpers.setHtmlTitle("EtherPad: Sign In") %> + +
+ +
+ diff --git a/trunk/etherpad/src/templates/pro/account/signin.ejs b/trunk/etherpad/src/templates/pro/account/signin.ejs new file mode 100644 index 0000000..c67bea6 --- /dev/null +++ b/trunk/etherpad/src/templates/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/trunk/etherpad/src/templates/pro/admin/account-manager.ejs b/trunk/etherpad/src/templates/pro/admin/account-manager.ejs new file mode 100644 index 0000000..f1b443f --- /dev/null +++ b/trunk/etherpad/src/templates/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/trunk/etherpad/src/templates/pro/admin/admin-template.ejs b/trunk/etherpad/src/templates/pro/admin/admin-template.ejs new file mode 100644 index 0000000..a54964f --- /dev/null +++ b/trunk/etherpad/src/templates/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/trunk/etherpad/src/templates/pro/admin/admin.ejs b/trunk/etherpad/src/templates/pro/admin/admin.ejs new file mode 100644 index 0000000..f8e1562 --- /dev/null +++ b/trunk/etherpad/src/templates/pro/admin/admin.ejs @@ -0,0 +1,15 @@ +<% /* 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. */ %> +Please select an option from the left. + diff --git a/trunk/etherpad/src/templates/pro/admin/billing-invoices.ejs b/trunk/etherpad/src/templates/pro/admin/billing-invoices.ejs new file mode 100644 index 0000000..a3a17d8 --- /dev/null +++ b/trunk/etherpad/src/templates/pro/admin/billing-invoices.ejs @@ -0,0 +1,45 @@ +<% /* 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('store/ondemand-billing.css'); +%> + +<% +function displayInvoice(invoice) { %> + + <%= formatDate(invoice.time) %> + <%= invoice.id %> + <%= invoice.status == 'paid' ? "Paid" : (invoice.status == 'pending' ? "Pending" : (invoice.status == 'refunded' ? "Refunded" : invoice.status)) %> + <%= invoice.users %> + US $<%= dollars(centsToDollars(invoice.amt)) %> + View + +<% } %> + +

Past Invoices

+ +<% if (invoices.length == 0) { %> +

No old invoices.

+<% } else { %> + + + + + + + + + + <% invoices.forEach(displayInvoice); %> +
DateInvoice NumberStatusNumber of usersCost 
+<% } %> \ No newline at end of file diff --git a/trunk/etherpad/src/templates/pro/admin/delete-account.ejs b/trunk/etherpad/src/templates/pro/admin/delete-account.ejs new file mode 100644 index 0000000..3de2122 --- /dev/null +++ b/trunk/etherpad/src/templates/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/trunk/etherpad/src/templates/pro/admin/manage-account.ejs b/trunk/etherpad/src/templates/pro/admin/manage-account.ejs new file mode 100644 index 0000000..72529b4 --- /dev/null +++ b/trunk/etherpad/src/templates/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/trunk/etherpad/src/templates/pro/admin/manage-billing.ejs b/trunk/etherpad/src/templates/pro/admin/manage-billing.ejs new file mode 100644 index 0000000..514d943 --- /dev/null +++ b/trunk/etherpad/src/templates/pro/admin/manage-billing.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. */ %> +<% + helpers.includeCss('store/ondemand-billing.css'); +%> + +<% function fmtdate(d) { + if (!d) { + return "Never"; + } else { + return d.toString().split(' ').slice(0,5).join(' '); + } +} + +function plural(amt) { + return (amt == 1 ? "" : "s"); +} + +%> + +

Payment Information

+ +

EtherPad Professional will be discontinued on <%= helpers.rafterTerminationDate() %>. No further payments will be collected.

+

Read more.

diff --git a/trunk/etherpad/src/templates/pro/admin/new-account.ejs b/trunk/etherpad/src/templates/pro/admin/new-account.ejs new file mode 100644 index 0000000..2f2cccf --- /dev/null +++ b/trunk/etherpad/src/templates/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/trunk/etherpad/src/templates/pro/admin/pne-config.ejs b/trunk/etherpad/src/templates/pro/admin/pne-config.ejs new file mode 100644 index 0000000..56fe68d --- /dev/null +++ b/trunk/etherpad/src/templates/pro/admin/pne-config.ejs @@ -0,0 +1,33 @@ +<% /* 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. */ %>

Private Server Configuration

+ +

Your private EtherPad server can be configured using either command-line arguments (of the +form --argName=value), or by adding the options to the file +data/etherpad.properties.

+ +

Learn more about server options in the PNE Server Manual.

+ +

Current Config Values

+ + + +<% propKeys.forEach(function(k) { %> + +<% }) %> +
Option NameCurrent Value
<%= k %><%= appjetConfig[k] %>
+ + + + + diff --git a/trunk/etherpad/src/templates/pro/admin/pne-dashboard.ejs b/trunk/etherpad/src/templates/pro/admin/pne-dashboard.ejs new file mode 100644 index 0000000..6b9b456 --- /dev/null +++ b/trunk/etherpad/src/templates/pro/admin/pne-dashboard.ejs @@ -0,0 +1,40 @@ +<% /* 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 Private Server Dashboard") %> + +

User Quota

+ +

Your maximum daily unique user quota is: <%= userQuota %>

+

So far today, there have been <%= todayActiveUsers %> applied against this quota.

+ +

Uptime

+ +This server has been running for <%= renderUptime() %>. + +

HTTP Response Codes

+ +<%= renderResponseCodes() %> + +

Current Realtime Pad Connections

+ +<%= renderPadConnections() %> + +

Realtime Transport Performance

+ +<%= renderTransportStats() %> + +
+ * +
+ + diff --git a/trunk/etherpad/src/templates/pro/admin/pne-license-manager.ejs b/trunk/etherpad/src/templates/pro/admin/pne-license-manager.ejs new file mode 100644 index 0000000..42594b8 --- /dev/null +++ b/trunk/etherpad/src/templates/pro/admin/pne-license-manager.ejs @@ -0,0 +1,132 @@ +<% /* 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 PNE License Manager"); %> +<% helpers.includeJQuery() %> +<% helpers.includeJs("etherpad.js") %> + +
+ + <% if (isExpired) { %> + +
+

Your evaluation license has expired!

+

Please contact <%= helpers.oemail("sales") %> or visit the pricing page on pad.spline.inf.fu-berlin.de + to purchase a license key.

+
+ + <% } %> + + <% if (isTooOld) { %> + +
+

The version of EtherPad you are running (<%= runningVersionString %>) is too old. + Please update to version <%= licenseVersionString %> or newer by downloading the latest version on + pad.spline.inf.fu-berlin.de.

+
+ + <% } %> + + <% if (errorMessage) { %> +
+

<%= errorMessage %>

+
+ <% } %> + + <% if (licenseInfo && !edit) { %> + +

License Info:

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Licensed To: <%= licenseInfo.personName %>
Organization: <%= licenseInfo.organizationName %>
Software Edition: <%= licenseInfo.editionName %>
Maximum Users: <%= licenseInfo.userQuota %>
Expires: <%= licenseInfo.expiresDate ? licenseInfo.expiresDate.toString() : "never" %>
+ +
+ +
+
+ +
+
+ + <% } %> + + <% if (isExpired || !licenseInfo || edit) { %> + +

Enter New License Info:

+ + <% if (isUnlicensed) { %> +

Before you can use this copy of EtherPad Private Network Edition, you must first + enter a valid license. Free trial licenses can be obtained obtained here. +

+ <% } %> + +
+
+ +

Name:

+ " /> + +

Organization:

+ " /> + +

License Key:

+ + +
+ +
+ + +
+
+ + <% } %> + +
+ diff --git a/trunk/etherpad/src/templates/pro/admin/pne-shell.ejs b/trunk/etherpad/src/templates/pro/admin/pne-shell.ejs new file mode 100644 index 0000000..f398b15 --- /dev/null +++ b/trunk/etherpad/src/templates/pro/admin/pne-shell.ejs @@ -0,0 +1,33 @@ +<% /* 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("Shell") %> + +

Warning! Be careful with this page.

+ +

Shell

+ +

Enter command:

+ +
+ + +
+ +<% if (result) { %> +

Result

+
+ <%= result %> +
+

Computed in <%= elapsedMs %>ms.

+<% } %> + diff --git a/trunk/etherpad/src/templates/pro/admin/pro-config.ejs b/trunk/etherpad/src/templates/pro/admin/pro-config.ejs new file mode 100644 index 0000000..32cb610 --- /dev/null +++ b/trunk/etherpad/src/templates/pro/admin/pro-config.ejs @@ -0,0 +1,55 @@ +<% /* 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. */ %> +

Application Configuration

+ +<%= messageDiv() %> + +
+ + + + + + + + + + + + + + + + + + + + +
Site Name (appears in + the header of all pages): + +
Always require all users on this domain to use secure + (HTTPS) connections? + /> +
Default pad text: + +
+ +
+ +
+ diff --git a/trunk/etherpad/src/templates/pro/admin/single-invoice.ejs b/trunk/etherpad/src/templates/pro/admin/single-invoice.ejs new file mode 100644 index 0000000..aeab184 --- /dev/null +++ b/trunk/etherpad/src/templates/pro/admin/single-invoice.ejs @@ -0,0 +1,47 @@ +<% /* 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('store/ondemand-billing.css'); +%> + +

Past Invoices

+ +

Invoice #<%= invoice.id %>, dated <%= formatDate(invoice.time) %>.

+ + + + + + + + + + + + + + + <% if (transaction) { %> + + + + + + + + + <% } %> +
Invoice status<%= invoice.status == 'paid' ? "Paid" : (invoice.status == 'pending' ? "Pending" : (invoice.status == 'refunded' ? "Refunded" : invoice.status)) %>
Number of users<%= invoice.users %>
CostUS $<%= dollars(centsToDollars(invoice.amt)) %>
Paid on<%= formatDate(transaction.time) %>
Paid using<%= transaction.payInfo %>
+ + + diff --git a/trunk/etherpad/src/templates/pro/padlist/pro-padlist.ejs b/trunk/etherpad/src/templates/pro/padlist/pro-padlist.ejs new file mode 100644 index 0000000..b762679 --- /dev/null +++ b/trunk/etherpad/src/templates/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/trunk/etherpad/src/templates/pro/pro-payment-required.ejs b/trunk/etherpad/src/templates/pro/pro-payment-required.ejs new file mode 100644 index 0000000..3649990 --- /dev/null +++ b/trunk/etherpad/src/templates/pro/pro-payment-required.ejs @@ -0,0 +1,51 @@ +<% /* 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/payment-required.css") %> + +
+ + +
+
+ +

Payment Required

+ +
<%= message %>
+
+ + <% if (isAdmin) { %> + + Manage Billing Info + + <% } else { %> +

Please contact one of the following site administrator to + set up a billing profile on <%= request.domain %>:

+ +
    + <% adminList.forEach(function(a) { %> +
  • <%= a.fullName %>  <<%= TT(a.email) + %>>
  • + <% }); %> +
+ + <% } %> + +

+

Questions? Contact <%= helpers.oemail("support") %>.

+ +
+
+ + diff --git a/trunk/etherpad/src/templates/pro/pro_home.ejs b/trunk/etherpad/src/templates/pro/pro_home.ejs new file mode 100644 index 0000000..bcf7443 --- /dev/null +++ b/trunk/etherpad/src/templates/pro/pro_home.ejs @@ -0,0 +1,103 @@ +<% /* 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") %>. + +

We hope you enjoy EtherPad!

+ +

Sincerely,

+ +

Spline

+

+
+ +
+ + +
+ + <%= helpers.clearFloats() %> + + <% if (isPNE) { %> +
+
+ EtherPad Private Network Edition (PNE) + Version <%= pneVersion %>
+ + <% if (isEvaluation && evalExpDate) { %> +
+ EVALUATION EDITION: Expires <%= evalExpDate.toString() + %>.
+ <% } %> +
+ <% } %> + +
+ diff --git a/trunk/etherpad/src/templates/statistics/stat_page.ejs b/trunk/etherpad/src/templates/statistics/stat_page.ejs new file mode 100644 index 0000000..22277b3 --- /dev/null +++ b/trunk/etherpad/src/templates/statistics/stat_page.ejs @@ -0,0 +1,89 @@ +<% /* 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('admin/admin-stats.css'); +helpers.includeJQuery(); +helpers.includeJs('statpage.js'); + +%> + +« back to admin + +
+
    + <% statCategoryNames.forEach(function(catName) { + %>
  • + <%= catName %> +
  • <% + }); %> +
+
+ +
 
+ +<%= helpers.clearFloats() %> + +<%= optionsForm %> + +<% function formatLatest(latest) { + if (typeof(latest) == 'string') { + return latest; + } else { + return ''+ + latest.map(function(x) { return ""; }).join("\n")+ + "
"+x.value+""+x.description+"
"; + } +} +%> + +<% +function displayStat(statObject) { + %> +
+

<%= statObject.name %>

+
+

<%= statObject.displayName %>

+ + + + + +
+ <%= statObject.graph %> + <% if (statObject.dataLinks) { %> + + <% } %> + +

Latest values:

+ <%= formatLatest(statObject.latest) %> +
+
+
+ <% +} + +function displayCategory(categoryName) { + %> +
+ <% + categoriesToStats[categoryName].forEach(displayStat); + %> +
+ <% +} + +statCategoryNames.forEach(displayCategory); + +%> + diff --git a/trunk/etherpad/src/templates/store/csc-help.ejs b/trunk/etherpad/src/templates/store/csc-help.ejs new file mode 100644 index 0000000..3623fac --- /dev/null +++ b/trunk/etherpad/src/templates/store/csc-help.ejs @@ -0,0 +1,23 @@ +<% /* 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. */ %> + + +

The CSC (or CVC) is the 3-digit number printed on the back of your card. +For American Express, it's the 4-digit number on the front.

+ +cc back + + + + diff --git a/trunk/etherpad/src/templates/store/eepnet-checkout/billing-info.ejs b/trunk/etherpad/src/templates/store/eepnet-checkout/billing-info.ejs new file mode 100644 index 0000000..69e0ead --- /dev/null +++ b/trunk/etherpad/src/templates/store/eepnet-checkout/billing-info.ejs @@ -0,0 +1,183 @@ +<% /* 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. */ %><% + if (!cart.billingCountry) { + cart.billingCountry = "US"; + } + helpers.includeJQuery(); + helpers.includeJs("billing_shared.js"); + helpers.includeJs("billing.js"); + + function classesPlusError(classes, id) { + return (classes || []).concat(errorIfInvalid(id) || []).join(' '); + } +%> + +<% function textRow(id, label, classes, notBillingField) { + var val = (cart[id] || ""); + var maxlen=60; + var border; + if (id == "billingCCNumber") { + if (billing.validateCcNumber(val)) { + border = "greenborder"; + } else if (billing.validateCcLength(val)) { + border = "redborder"; + } + val = obfuscateCC(val); + maxlen = 16; + } + var classString = classesPlusError((notBillingField?[]:['billingfield']).concat(classes), id); + return TR({className: classString}, + TD({className: 'pcell'}, + LABEL({htmlFor: id}, label+(label.length > 0 ? ":" : ''))), + TD({className: 'tcell'}, + INPUT({type: 'text', name: id, size:35, maxlength:maxlen, + value: val, + className: border}))); + } %> + +

Your name:

+ + <%= textRow("billingFirstName", "First Name", [], true) %> + <%= textRow("billingLastName", "Last Name", [], true) %> +
+ +

Payment information:

+ +<% if (request.scheme == 'https') { %> +
+

Your payment information will be sent securely.

+
+<% } %> + +<% + function purchaseType(id, title) { + var sel; + if (! cart.billingPurchaseType) { + sel = (id == 'creditcard'); + } else { + sel = (cart.billingPurchaseType == id); + } + %> + + style="display: inline-block; vertical-align: middle;"/> + + + <% + } +%> + +
+

">Pay using: +<% purchaseType('creditcard', 'Credit Card'); %> +<% purchaseType('invoice', 'Invoice'); %> +<% purchaseType('paypal', 'PayPal'); %> +

+
+ + + <%= textRow("billingCCNumber", "Credit Card Number", ['creditcardreq']) %> + +<% function cardInput(cctype) { + var classes = []; + if (cart.billingCCNumber) { + if (cctype == billing.getCcType(cart.billingCCNumber)) { + classes.push("ccimageselected"); + } + } + classes.push("ccimage"); + var img = IMG({ + src: "/static/img/billing/"+cctype+".gif", + alt: cctype, + className: classes.join(" "), + style: "vertical-align: middle", + id: "img"+cctype}); + return img; + } %> + + + + + + + "> + + + + + + + + + + + + + + <%= textRow("billingAddressLine1", "Address", ['creditcardreq', 'invoicereq']) %> + <%= textRow("billingAddressLine2", "", ['creditcardreq', 'invoicereq']) %> + <%= textRow("billingCity", "City", ['creditcardreq', 'invoicereq']) %> + + + + + + <%= textRow("billingProvince", "Province", ['creditcardreq', 'invoicereq', 'intonly'])%> + <%= textRow("billingZipCode", "Zip Code", ['creditcardreq', 'invoicereq', 'usonly']) %> + <%= textRow("billingPostalCode", "Postal Code", ['creditcardreq', 'invoicereq', 'intonly'])%> + +
  +
+ <% ["visa", "mc", "disc", "amex"].forEach(function(t) { %> + <%= cardInput(t) %> + <% }); %> +
+
Expiration (MM/YY): + + / + +     CSC/CVC: + + what's this? +
(Be sure to enter your credit card billing address below.)
Country: + +
State: + +
Click "<%= billingButtonName %>" below to continue with PayPal.
+ +<% if (showCouponCode) { %> +

Optional information:

+ + <%= textRow("billingReferralCode", "Referral Code", [], true) %> +
+<% } %> + + +<%= billingFinalPhrase %> \ No newline at end of file diff --git a/trunk/etherpad/src/templates/store/eepnet-checkout/cart.ejs b/trunk/etherpad/src/templates/store/eepnet-checkout/cart.ejs new file mode 100644 index 0000000..147ff1b --- /dev/null +++ b/trunk/etherpad/src/templates/store/eepnet-checkout/cart.ejs @@ -0,0 +1,119 @@ +<% /* 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. */ %> +
+ + + + + + + <% if (! ('baseCost' in cart) && ! ('supportCost' in cart)) { %> + + + + <% } %> + + <% if (cart.baseCost) { %> + + + + + <% if (cart.couponProductPctDiscount) { %> + + + + + <% } %> + <% } %> + + <% if (cart.supportCost) { %> + + + + + <% if (cart.couponSupportPctDiscount) { %> + + + + + <% } %> + <% } else if (cart.baseCost) { %> + + + + + <% } %> + + <% if (cart.freeUserCount) { %> + + + + + <% } %> + + + + <% + var pctDiscount = cart.couponTotalPctDiscount; + var hasSubtotal = pctDiscount > 0; + %> + <% if (hasSubtotal) { %> + + + + + + + + + <% } %> + + + + +
ItemCost
+ Nothing selected. +
+ Etherpad Private Network
+ <%= cart.numUsers %> users + <% if (editable) { %> + (">edit) + <% } %> + +
US$<%= dollars(cart.baseCost) %>
+ Referral - <%= cart.couponProductPctDiscount %>% savings + -US$<%= dollars(cart.productReferralDiscount) %>
+ Support Contract + <% if (editable) { %> + (">edit) + <% } %> + +
+ 1 year +
US$<%= dollars(cart.supportCost) %>
+ Referral - <%= cart.couponSupportPctDiscount %>% savings + -US$<%= dollars(cart.supportReferralDiscount) %>
+ No Support Contract + <% if (editable) { %> + (">edit) + <% } %> + + US$0.00
+ Bonus Users
+ + Referral - <%= cart.freeUserCount %> free + user<%= (cart.freeUserCount == 1 ? '' : "s") %> + +
US$0.00
 
SubtotalUS$<%= dollars(cart.subTotal) %>
Referral - <%= pctDiscount %>% savings-US$<%= dollars(cart.totalReferralDiscount) %>
TotalUS$<%= dollars(cart.total) %>
+
\ No newline at end of file diff --git a/trunk/etherpad/src/templates/store/eepnet-checkout/checkout-template.ejs b/trunk/etherpad/src/templates/store/eepnet-checkout/checkout-template.ejs new file mode 100644 index 0000000..817f0eb --- /dev/null +++ b/trunk/etherpad/src/templates/store/eepnet-checkout/checkout-template.ejs @@ -0,0 +1,38 @@ +<% /* 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("store/eepnet-checkout.css"); %> +<% helpers.includeJQuery() %> +<% helpers.includeJs("etherpad.js") %> +<% helpers.setHtmlTitle(title); %> + +<% +var selectCount = 0; +function select(id, title) { + var className = 'poslabel'; + if (pageId == id) { + className += ' current'; + } + selectCount++; + return SPAN({className: className}, selectCount+". "+title); +} +%> + +
+
+ +

Private Network Edition: Purchase Online

+ + <%= helpers.rafterNote() %> + +
+
diff --git a/trunk/etherpad/src/templates/store/eepnet-checkout/confirmation.ejs b/trunk/etherpad/src/templates/store/eepnet-checkout/confirmation.ejs new file mode 100644 index 0000000..3b38775 --- /dev/null +++ b/trunk/etherpad/src/templates/store/eepnet-checkout/confirmation.ejs @@ -0,0 +1,33 @@ +<% /* 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.includeJs('confirmation.js'); +%> + +<% if (request.params.frompaypal) { + handlePayPalRedirect(); +} %> + +<%= displaySummary(true) %> + +<% switch(cart.billingPurchaseType) { + case 'creditcard': case 'paypal': %> +

If this looks good, click "Purchase" below to complete your purchase.

+ <% break; + case 'invoice': %> +

If this looks good, print this page and mail it along with a check or other + prearranged payment to:

AppJet, Inc.
Pier 38 - Suite 210
The Embarcadero
San Francisco, CA 94107

+ <% break; +} + %> + diff --git a/trunk/etherpad/src/templates/store/eepnet-checkout/license-info.ejs b/trunk/etherpad/src/templates/store/eepnet-checkout/license-info.ejs new file mode 100644 index 0000000..4d710f2 --- /dev/null +++ b/trunk/etherpad/src/templates/store/eepnet-checkout/license-info.ejs @@ -0,0 +1,40 @@ +<% /* 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. */ %>

Your license key will be issued to a particular individual at your organization, and will be delivered to the email address you specify below.

+ + + + + + + + + + + + + + + + + + + + +
Email address to receive license key:
Name of license owner (your name):
Organization or company name:
+ /> + +
\ No newline at end of file diff --git a/trunk/etherpad/src/templates/store/eepnet-checkout/purchase.ejs b/trunk/etherpad/src/templates/store/eepnet-checkout/purchase.ejs new file mode 100644 index 0000000..49cb3bb --- /dev/null +++ b/trunk/etherpad/src/templates/store/eepnet-checkout/purchase.ejs @@ -0,0 +1,33 @@ +<% /* 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. */ %>

Thank you for choosing to purchase Enterprise EtherPad Private Network Edition.

+ +

A license allows a certain number of concurrent users, at a one-time cost of US $<%= dollars(costPerUser) %> per user with no recurring costs. Learn more about how we count users.

+ +

How many users should your license support?

+ + + + + + +
Number of Users at US $<%= dollars(costPerUser) %>/user:
+ + + + + + +
Referral Code (optional):
diff --git a/trunk/etherpad/src/templates/store/eepnet-checkout/receipt.ejs b/trunk/etherpad/src/templates/store/eepnet-checkout/receipt.ejs new file mode 100644 index 0000000..8d3a2a5 --- /dev/null +++ b/trunk/etherpad/src/templates/store/eepnet-checkout/receipt.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. */ %><% if (cart.showStartOverMessage) { %> +
+ Your purchase is complete! To purchase another item, please return to the purchase page. +
+<% } + +switch(cart.status) { + case 'success': + %>

Thank you for your purchase! This page serves as your receipt. Please print it for your records. You will receive a copy of this receipt and license key by email shortly.

<% + break; + case 'pending': + %>

Your purchase is pending approval by PayPal. Once it clears, + usually in 2-5 business days, you will receive a copy of this receipt and + your license key by email.

<% + break; +} %> + +<% + var instructions = "/ep/pne-manual"; + var download = "/ep/store/eepnet-download-nextsteps"; +%> + +

To install EtherPad Private Network Edition:

+ + +

+ +<%= displaySummary() %> diff --git a/trunk/etherpad/src/templates/store/eepnet-checkout/summary.ejs b/trunk/etherpad/src/templates/store/eepnet-checkout/summary.ejs new file mode 100644 index 0000000..753873c --- /dev/null +++ b/trunk/etherpad/src/templates/store/eepnet-checkout/summary.ejs @@ -0,0 +1,91 @@ +<% /* 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 textRow(tcell, pcell) { + %> + <%= tcell %> + <%= pcell %> + + <% +} +var keyData = { + ownerName: cart.ownerName, + orgName: cart.orgName +} +if (cart.licenseKey) { + var parts = cart.licenseKey.split(":"); + keyData.ownerName = parts[0]; + keyData.orgName = parts[1]; + keyData.key = parts[2]; + + keyData.keyLine1 = keyData.key.substring(0, keyData.key.length/3); + keyData.keyLine2 = keyData.key.substring(keyData.key.length/3, 2*keyData.key.length/3); + keyData.keyLine3 = keyData.key.substring(2*keyData.key.length/3, keyData.key.length); +} + +function makeRows(arr) { + arr.forEach(function(arr) { textRow(arr[0], arr[1]); }); +} +%> + +

License Information <% if (editable) { %>(">edit)<% } %>

+ + + <% + makeRows([ + [ "Administrator name:", keyData.ownerName ], + [ "Organization/Company:", keyData.orgName ], + [ "Email address for delivery:", cart.email ], + [ "Total users:", cart.userCount ] + ]); + if (keyData.key) { + textRow("License key:", keyData.keyLine1+"
"+keyData.keyLine2+"
"+keyData.keyLine3); + %><% + } + %> +
+ +

Payment Information <% if (editable) { %>(">edit)<% } %>

+ + + <% + var isUs = cart.billingCountry == "US"; + switch(cart.billingPurchaseType) { + case 'creditcard': + makeRows([ + [ "Credit card number:", obfuscateCC(cart.billingCCNumber) ], + [ "Expiration date:", cart.billingExpirationMonth+" / 20"+cart.billingExpirationYear ] + ]); + // falling through intentional. + case 'invoice': + makeRows([ + [ "Purchaser name:", cart.billingFirstName + " " + cart.billingLastName ], + [ "Purchaser address: ", cart.billingAddressLine1 + "
" + + (cart.billingAddressLine2 ? cart.billingAddressLine2 + "
" : "") + + cart.billingCity + ", " + + (isUs?cart.billingState:cart.billingProvince) + "
" + + (isUs?cart.billingZipCode:cart.billingPostalCode) + + (isUs?'':', '+cart.billingCountry) ], + [ "Invoice number: ", cart.invoiceId ] + ]); + break; + case 'paypal': + textRow("Paid using:", "PayPal"); + textRow("InvoiceNumber:", cart.invoiceId); + } + %> +
+ +

Summary of Charges

+ +<%= displayCart("shoppingconfirmation", editable) %> diff --git a/trunk/etherpad/src/templates/store/eepnet-checkout/support-contract.ejs b/trunk/etherpad/src/templates/store/eepnet-checkout/support-contract.ejs new file mode 100644 index 0000000..ff33fda --- /dev/null +++ b/trunk/etherpad/src/templates/store/eepnet-checkout/support-contract.ejs @@ -0,0 +1,41 @@ +<% /* 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. */ %>

A support contract gives you free upgrades and help directly from the engineers who developed EtherPad. Support contracts cost US $<%= dollars(costPerUser * supportCostPct/100) %> per user per year, with a US $<%= dollars(supportMinCost) %> per year minimum. Learn more about support contracts.

+ +

For the <%= cart.numUsers %>-user license you've selected, a support contract costs US $<%= discountedSupportCost() !== undefined ? dollars(discountedSupportCost()) : dollars(supportCost()) %>. + +

Do you want a support contract?

+ + + + + + + + + + + +
+ /> + + +
+ /> + + +
\ No newline at end of file diff --git a/trunk/etherpad/src/templates/store/eepnet_download.ejs b/trunk/etherpad/src/templates/store/eepnet_download.ejs new file mode 100644 index 0000000..42c89ee --- /dev/null +++ b/trunk/etherpad/src/templates/store/eepnet_download.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.includeCss("store/store.css") %> +<% helpers.includeJQuery() %> +<% helpers.includeJs("store.js") %> + +
+ + <% if (message) { %> +
+ <%= message %> +
+ <% } %> + +

Download EtherPad Private Network Edition:

+ +

+
+ + + + + Download Now + +

Version: <%= versionString %>


+ +
+ + +
diff --git a/trunk/etherpad/src/templates/store/eepnet_eval_nextsteps.ejs b/trunk/etherpad/src/templates/store/eepnet_eval_nextsteps.ejs new file mode 100644 index 0000000..4c4cec4 --- /dev/null +++ b/trunk/etherpad/src/templates/store/eepnet_eval_nextsteps.ejs @@ -0,0 +1,40 @@ +<% /* 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. */ %>
+

Downloading...

+ +

Your download should begin automatically. If it does not, you + can click this link:

+ + + +

Next Steps

+ + + +
+ + + diff --git a/trunk/etherpad/src/templates/store/eepnet_eval_signup.ejs b/trunk/etherpad/src/templates/store/eepnet_eval_signup.ejs new file mode 100644 index 0000000..5a1edf4 --- /dev/null +++ b/trunk/etherpad/src/templates/store/eepnet_eval_signup.ejs @@ -0,0 +1,125 @@ +<% /* 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("Sign up for EtherPad PNE Free Trial"); %> +<% helpers.includeJQuery() %> +<% helpers.includeJs("etherpad.js") %> +<% helpers.includeJs("store.js") %> +<% helpers.includeCss("store/store.css") %> + +<% function renderField(maxlen, id, title) { + var oldValue = (oldData[id] || ""); + return DIV(P(LABEL({htmlFor: id}, title), + INPUT({maxlength: maxlen, + type: "text", + className: "signupData", + name: id, + id: id, + value: oldValue}))); + } + + function renderWebLeadField(name) { + return INPUT({type: 'hidden', name: name, id: "wl_"+name, value: ""}); + } +%> + +
+ +

Private Network Edition: <%= trialDays %>-Day Free Trial

+ +

Enter your information here to download a free <%= trialDays + %>-day trial of EtherPad Private Network Edition.

+ + + + + +
+ +
+ + <% /* note: these fields should match exactly the eepnet-pricingcontact + form in pricing_eepnet.ejs */ %> + + <%= renderField(40, "firstName", "First Name:") %> + <%= renderField(80, "lastName", "Last Name:") %> + <%= renderField(80, "email", "Your Email (license key will be sent here):") %> + <%= renderField(40, "orgName", "Company/Organization:") %> + +

+ + +

+ + <%= renderField(40, "jobTitle", "Your Title:") %> + <%= renderField(40, "phone", "Phone Number:") %> + <%= renderField(160, "estUsers", "Estimated number of users:") %> + +
+ +

+ +
+ +

If you already have a license, you + can skip directly to download.

+ +

You can also recover a + lost license key.

+ +

Questions? Email <%= helpers.oemail("sales") %>.

+ +
+ +
+ + + + <% [ + "oid", + "first_name", + "last_name", + "email", + "company", + "title", + "phone", + "00N80000003FYtG", + "00N80000003FYto", + "00N80000003FYuI", + "lead_source", + "industry" + ].forEach(function(f) { %> + + <%= renderWebLeadField(f) %> + + <% }); %> + +
+ + + -- cgit v1.2.3