summaryrefslogtreecommitdiffstats
path: root/etherpad/src/templates
diff options
context:
space:
mode:
authorPeter Martischka <petermartischka@googlemail.com>2010-04-04 03:44:37 +0200
committerPeter Martischka <pita@pitapoison.de>2010-04-04 03:44:37 +0200
commitf5f400aa103ce7c0436fc6352bf540ed4c6274ef (patch)
tree97eaf86f813891e74c778d3e0f6810ee13fa46e3 /etherpad/src/templates
parent4b76ba7a6cbcb31ac5c9d0ec2d60e997f2dac6d1 (diff)
downloadetherpad-f5f400aa103ce7c0436fc6352bf540ed4c6274ef.tar.gz
etherpad-f5f400aa103ce7c0436fc6352bf540ed4c6274ef.tar.bz2
etherpad-f5f400aa103ce7c0436fc6352bf540ed4c6274ef.zip
Opportunity to enable/disable the Pro Feature with a config flag
Diffstat (limited to 'etherpad/src/templates')
-rw-r--r--etherpad/src/templates/framed/framedheader-pro.ejs6
-rw-r--r--etherpad/src/templates/main/home.ejs14
2 files changed, 11 insertions, 9 deletions
diff --git a/etherpad/src/templates/framed/framedheader-pro.ejs b/etherpad/src/templates/framed/framedheader-pro.ejs
index 857fa3e..73b0e99 100644
--- a/etherpad/src/templates/framed/framedheader-pro.ejs
+++ b/etherpad/src/templates/framed/framedheader-pro.ejs
@@ -1,4 +1,6 @@
-<% /* Copyright 2009 Google Inc.
+<% /*
+Copyright 2009 Google Inc.
+Copyright 2010 Pita, Peter Martischka <petermartischka@googlemail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -64,10 +66,8 @@ limitations under the License. */ %><% helpers.addBodyClass("pro-withtopbar"); %
<div id="pro-topnav">
<div id="pro-topnav-inner">
- <% if (validLicense && account) { %>
<%= renderProTopNav() %>
<%= helpers.clearFloats() %>
- <% } %>
</div>
</div>
diff --git a/etherpad/src/templates/main/home.ejs b/etherpad/src/templates/main/home.ejs
index 3fc0484..aa5d934 100644
--- a/etherpad/src/templates/main/home.ejs
+++ b/etherpad/src/templates/main/home.ejs
@@ -1,4 +1,6 @@
-<% /* Copyright 2009 Google Inc.
+<% /*
+Copyright 2009 Google Inc.
+Copyright 2010 Pita, Peter Martischka <petermartischka@googlemail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -23,11 +25,11 @@ limitations under the License. */ %><% helpers.setHtmlTitle("EtherPad: Open-Sour
<a id="home-newpad" href="/ep/pad/newpad">
Create new pad
</a>
- <!--
- <a id="home-newsite" href="ep/pro-signup/">
- Create team site
- </a>
- -->
+ <% if (isProAccountEnabled()) { %>
+ <a id="home-newteam" href="/ep/pro-signup/">
+ Create team site
+ </a>
+ <% } %>
</div>
</div>