~etherpad/etherpad/ubuntu-lucid-backport

« back to all changes in this revision

Viewing changes to etherpad/src/themes/micro/default/templates/framed/framedheader-pro.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
<% /* 
 
2
Copyright 2009 Google Inc.
 
3
Copyright 2010 Pita, Peter Martischka <petermartischka@googlemail.com>
 
4
 
 
5
Licensed under the Apache License, Version 2.0 (the "License");
 
6
you may not use this file except in compliance with the License.
 
7
You may obtain a copy of the License at
 
8
 
 
9
     http://www.apache.org/licenses/LICENSE-2.0
 
10
 
 
11
Unless required by applicable law or agreed to in writing, software
 
12
distributed under the License is distributed on an "AS-IS" BASIS,
 
13
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
14
See the License for the specific language governing permissions and
 
15
limitations under the License. */ %><% helpers.addBodyClass("pro-withtopbar"); %>
 
16
 
 
17
<div id="pro-topbar">
 
18
 
 
19
  <div id="pro-topbar-inner">
 
20
        <div id="pro-brand-name">
 
21
        <%=appjet.config.customBrandingName%>
 
22
        </div>
 
23
    <% if (account) { %>
 
24
      <div id="accountnav">
 
25
<!--        <%= toHTML(account.email) %>-->
 
26
        <a href="/ep/account/sign-out">(sign out)</a>
 
27
      </div>
 
28
    <% } else { %>
 
29
      <% // TODO: eventually have sign-in link here. %>
 
30
    <% } %>
 
31
 
 
32
    <div id="org-name">
 
33
<!--
 
34
      <a href="/">
 
35
        <%= proDomainOrgName %>
 
36
      </a>
 
37
-->
 
38
      <% if (isAnEtherpadAdmin) { %>
 
39
        <span style="color: #ff0; padding-left: 2em; font-weight: bold;">INVISIBLE ADMIN MODE</span>
 
40
      <% } %>
 
41
    </div>
 
42
 
 
43
    <div style="clear: both;"><!-- --></div>
 
44
 
 
45
  </div>
 
46
</div>
 
47
 
 
48
<% function renderProTopNav() {
 
49
    var links = [
 
50
      ['/', 'Home', 'home'],
 
51
      ['/ep/padlist/', 'Pads', 'padlist'],
 
52
      ['/ep/account/', 'My Account', 'account'],
 
53
      ['/ep/pro-help/', 'Help', 'help']
 
54
    ];
 
55
    if (account && account.isAdmin) {
 
56
      links.push(['/ep/admin/', 'Admin', 'admin']);
 
57
    }
 
58
    var ul = UL();
 
59
    links.forEach(function(l) {
 
60
      var c = l[2];
 
61
      var selc = (request.path == l[0] || navSelection == c) ? " selected" : "";
 
62
      ul.push(LI({className: 'topnav_'+c+selc},
 
63
                 A({href: request.scheme + '://'+request.host+l[0]}, l[1])));
 
64
    });
 
65
    return ul;
 
66
} %>
 
67
 
 
68
  <%= pneTrackerHtml %>
 
69
 
 
70
<div id="pro-topnav">
 
71
  <div id="pro-topnav-inner">
 
72
      <%= renderProTopNav() %>
 
73
      <%= helpers.clearFloats() %>
 
74
  </div>
 
75
</div>
 
76