~davewalker/etherpad/ubuntu-unlimited-max-users-and-revisions

« back to all changes in this revision

Viewing changes to etherpad/src/themes/default/templates/pro/admin/pne-license-manager.ejs

  • Committer: James Page
  • Date: 2011-04-13 08:00:43 UTC
  • Revision ID: james.page@canonical.com-20110413080043-eee2nq7y1v7cv2mp
* Refactoring to use native Ubuntu Java libraries. 
* debian/control:
  - use openjdk instead of sun's java
  - update maintainer
* debian/etherpad.init.orig, debian/etherpad.upstart:
  - move the init script out of the way
  - create a basic upstart script
  - note that the open office document conversion daemon was dropped
    from the upstart configuration; if this behavior is desired, please
    create a separate upstart job for it
* debian/rules:
  - just use basic dh_installinit, as it will pick up the new upstart job
* New release
* Changed maintainer to Packaging
* Fixed installation scripts
* Initial Release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<% /* Copyright 2009 Google Inc.
 
2
 
 
3
Licensed under the Apache License, Version 2.0 (the "License");
 
4
you may not use this file except in compliance with the License.
 
5
You may obtain a copy of the License at
 
6
 
 
7
     http://www.apache.org/licenses/LICENSE-2.0
 
8
 
 
9
Unless required by applicable law or agreed to in writing, software
 
10
distributed under the License is distributed on an "AS-IS" BASIS,
 
11
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
12
See the License for the specific language governing permissions and
 
13
limitations under the License. */ %><% helpers.setHtmlTitle("EtherPad PNE License Manager"); %>
 
14
<% helpers.includeJQuery() %>
 
15
<% helpers.includeJs("etherpad.js") %>
 
16
 
 
17
<div id="lm">
 
18
 
 
19
  <% if (isExpired) { %>
 
20
 
 
21
    <div class="lm-error-msg">
 
22
      <p>Your evaluation license has expired!</p>
 
23
      <p>Please contact <%= helpers.oemail("sales") %> or visit the <a
 
24
      href="http://etherpad.com/ep/about/pricing-eepnet">pricing page on etherpad.com</a>
 
25
      to purchase a license key.</p>
 
26
    </div>
 
27
 
 
28
  <% } %>
 
29
 
 
30
  <% if (isTooOld) { %>
 
31
 
 
32
    <div class="lm-notice-msg">
 
33
      <p>The version of EtherPad you are running (<%= runningVersionString %>) is too old.
 
34
      Please update to version <%= licenseVersionString %> or newer by <a
 
35
      href="http://etherpad.com/ep/store/eepnet-download">downloading the latest version on
 
36
      etherpad.com</a>.</p>
 
37
    </div>
 
38
 
 
39
  <% } %>
 
40
 
 
41
  <% if (errorMessage) { %>
 
42
    <div class="lm-error-msg">
 
43
      <p><%= errorMessage %></p>
 
44
    </div>
 
45
  <% } %>
 
46
 
 
47
  <% if (licenseInfo && !edit) { %>
 
48
  
 
49
    <h3 class="top">License Info:</h3>
 
50
 
 
51
    <div id="lm-status">
 
52
      <table>
 
53
        <tr>
 
54
          <td width="1%" align="right">Licensed To: </td>
 
55
          <td width="99%"><b><%= licenseInfo.personName %></b></td>
 
56
        </tr>
 
57
 
 
58
        <tr>
 
59
          <td align="right">Organization: </td>
 
60
          <td><b><%= licenseInfo.organizationName %></b></td>
 
61
        </tr>
 
62
 
 
63
        <tr>
 
64
          <td align="right">Software Edition: </td>
 
65
          <td><b><%= licenseInfo.editionName %></b></td>
 
66
        </tr>
 
67
 
 
68
        <tr>
 
69
          <td align="right">Maximum Users: </td>
 
70
          <td><b><%= licenseInfo.userQuota %></b></td>
 
71
        </tr>
 
72
<!--
 
73
        <tr>
 
74
          <td align="right">Licensed PNE Version: </td>
 
75
          <td><b><%= licenseVersionString %>+</b></td>
 
76
        </tr>
 
77
-->
 
78
        <tr>
 
79
          <td align="right">Expires: </td>
 
80
          <td><b><%= licenseInfo.expiresDate ? licenseInfo.expiresDate.toString() : "never" %></b></td>
 
81
        </tr>
 
82
      </table>
 
83
 
 
84
    </div>
 
85
 
 
86
    <div id="lm-edit-button-wrap">
 
87
      <form action="<%= request.path %>edit" method="get">
 
88
        <input type="submit" name="btn" value="Edit License Info" />
 
89
      </form>
 
90
    </div>
 
91
 
 
92
  <% } %>
 
93
 
 
94
  <% if (isExpired || !licenseInfo || edit) { %>
 
95
 
 
96
    <h3 class="top">Enter New License Info:</h3>
 
97
 
 
98
    <% if (isUnlicensed) { %>
 
99
      <p>Before you can use this copy of EtherPad Private Network Edition, you must first
 
100
        enter a valid license.  Free trial licenses can be obtained <a
 
101
        target="_blank"
 
102
        href="https://etherpad.com/ep/store/eepnet-eval-signup">obtained here</a>.
 
103
      </p>
 
104
    <% } %>
 
105
 
 
106
    <form action="<%= request.path %>" method="post">
 
107
      <div id="lm-edit">
 
108
 
 
109
        <p><b>Name:</b></p>
 
110
        <input style="width: 100%;" type="text" name="personName" 
 
111
                value="<%= toHTML(oldData.personName || "") %>" />
 
112
 
 
113
        <p><b>Organization:</b></p>
 
114
        <input style="width: 100%;" type="text" name="orgName" 
 
115
               value="<%= toHTML(oldData.orgName || "") %>" />
 
116
 
 
117
        <p><b>License Key:</b></p>
 
118
        <textarea style="width: 100%; height: 60px;" 
 
119
                  name="licenseString"><%= toHTML(oldData.licenseString || "") %></textarea>
 
120
 
 
121
      </div>
 
122
 
 
123
      <div id="lm-edit-submit-wrap">
 
124
        <input type="submit" name="submit" value="Submit" />
 
125
        <input type="submit" name="cancel" value="Cancel" />
 
126
      </div>
 
127
    </form>
 
128
  
 
129
  <% } %>
 
130
 
 
131
</div><!-- /lm -->
 
132