aboutsummaryrefslogtreecommitdiffstats
path: root/etherpad/src/themes/default/templates/page.ejs
blob: 3d1632a610f4efefd7c01876609cd2435e13d945 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<% /* 
Copyright 2009 Google Inc.
Copyright 2010 Pita, Peter Martischka

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS-IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */ %>
<%
  helpers.setBodyId("padbody");
  helpers.addBodyClass(bodyClass);
  helpers.includeCss("pad2_ejs.css");
  helpers.includeJs("undo-xpopup.js");
  helpers.includeCometJs();
  helpers.includeJQuery();;
  helpers.includeJs("json2.js");
  helpers.includeJs("colorutils.js");
  helpers.includeJs("draggable.js");
  helpers.includeJs("pad_utils.js");
  helpers.includeJs("pad_cookie.js");
  helpers.includeJs("pad_editor.js");
  helpers.includeJs("pad_editbar.js");
  helpers.includeJs("pad_docbar.js");
  helpers.includeJs("pad_modals.js");
  helpers.includeJs("pad2.js");
  helpers.suppressGA();
  helpers.setRobotsPolicy({index: false, follow: false});

%>

<% template.define('body', function() { var ejs_data=''; %>
  <div id="padpage">
    <div id="padtop">
      <div id="topbar">
	<% /* floated left */ %>
	<div id="topbarleft"><!-- --></div>
	<% /* <a href="#" id="topbarnewpad">New Pad</a> */ %>
	<% /* floated right */ %>
	<div id="topbarright"><!-- --></div>
	<% /* <a href="#" id="topbarfullwidth">Toggle Width</a> */ %>
	<% /* non-floated */ %>
	<div id="topbarcenter">
	  <a href="/" id="topbaretherpad">EtherPad</a>
	</div>
	<% if (isProAccountHolder) { %>          
	  <a id="backtoprosite" href="/ep/padlist/">Return to pad list</a>
	  <div id="accountnav"><%= toHTML(account.email) %>
	    <a href="/ep/account/sign-out">(sign out)</a>
	  </div>
	<% } else if (isPro) { %>
	  <div id="accountnav">
	    <a href="<%= signinUrl %>">sign in</a>
	  </div>
	<% } %>
	<div id="specialkeyarea"><!-- --></div>
      </div>
      <div id="alertbar">
	<div id="servermsg">
	  <h3>Server Notice<span id="servermsgdate"><!-- --></span>:</h3>
	  <a id="hidetopmsg" href="javascript: void pad.hideServerMessage()">hide</a>
	  <p id="servermsgtext"><!-- --></p>
	</div>
      </div>

      <div id="docbar">
	<table border="0" cellpadding="0" cellspacing="0" width="100%" id="docbartable">
	  <tr>
	    <td><img src="/static/img/jun09/pad/roundcorner_left.gif"></td>
            <%: template.use('docBarTitle'); %>
	    <td width="100%">&nbsp;</td>
            <%: template.use('docBarItems'); %>
	    <%: plugins.callHookStr('docbarItemsAll', {}, '', '', ''); %>
	    <td><img src="/static/img/jun09/pad/roundcorner_right_orange.gif"></td>
	  </tr>
	</table>
        <%: template.use('docBarTitleEditor'); %>
        <%: template.use('docBarDropdowns'); %>
      </div><!-- /docbar -->
    </div>

    <div id="padmain">
      <div id="padsidebar"><%: template.use('sideBar'); %></div> 

      <div id="padeditor">
	<div id="editbar" class="disabledtoolbar">
	  <% /* floated left */ %>
	  <div id="editbarleft"><!-- --></div>
	  <% /* floated right */ %>
	  <div id="editbarright"><!-- --></div>      
	  <% /* non-floated */ %>
	  <div id="editbarinner">
	    <table cellpadding="0" cellspacing="0" border = "0" id="editbartable">
              <tr>
                <%: template.use('editBarItemsLeft'); %>
	        <td width="100%">&nbsp;</td>
  	      </tr>
            </table>
	    <table cellpadding="0" cellspacing="0" border = "0" id="editbarsavetable">
	      <tr>
	        <%: template.use('editBarItemsRight'); %>
	      </tr>
	    </table>
	  </div>
	</div>
	<div id="editorcontainerbox"><%: template.use('contentArea'); %></div>
      </div><!-- /padeditor -->

      <div id="bottomarea">
	<div id="viewbarcontents">
	  <div id="viewzoomtitle">Zoom:</div>
	  <select id="viewzoommenu"><option value="z85">85%</option><option value="z100">100%</option><option value="z115">115%</option><option value="z150">150%</option><option value="z200">200%</option><option value="z300">300%</option></select>
	</div>

	<div id="widthprefcheck"
	     class="<%= (prefs.isFullWidth?'widthprefchecked':'widthprefunchecked') %>"
	     ><!-- --></div>
	<div id="sidebarcheck"
	     class="<%= (prefs.hideSidebar?'sidebarunchecked':'sidebarchecked') %>"
	     ><!-- --></div>
      </div>

    </div><!-- /padmain -->

  </div><!-- /padpage -->

  <%: template.use('modals'); %>

<% return ejs_data; }); %>