aboutsummaryrefslogblamecommitdiffstats
path: root/etherpad/src/themes/default/templates/page.ejs
blob: 3d1632a610f4efefd7c01876609cd2435e13d945 (plain) (tree)







































































                                                                                     


                                                                                        
                                               
                                        
                                               
                                                                         























































                                                                                                                                                                                                                                                       
<% /* 
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; }); %>