2
Copyright 2009 Google Inc.
3
Copyright 2010 Pita, Peter Martischka <petermartischka@googlemail.com>
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
9
http://www.apache.org/licenses/LICENSE-2.0
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"); %>
19
<div id="pro-topbar-inner">
20
<div id="pro-brand-name">
21
<%=appjet.config.customBrandingName%>
25
<!-- <%= toHTML(account.email) %>-->
26
<a href="/ep/account/sign-out">(sign out)</a>
29
<% // TODO: eventually have sign-in link here. %>
35
<%= proDomainOrgName %>
38
<% if (isAnEtherpadAdmin) { %>
39
<span style="color: #ff0; padding-left: 2em; font-weight: bold;">INVISIBLE ADMIN MODE</span>
43
<div style="clear: both;"><!-- --></div>
48
<% function renderProTopNav() {
50
['/', 'Home', 'home'],
51
['/ep/padlist/', 'Pads', 'padlist'],
52
['/ep/account/', 'My Account', 'account'],
53
['/ep/pro-help/', 'Help', 'help']
55
if (account && account.isAdmin) {
56
links.push(['/ep/admin/', 'Admin', 'admin']);
59
links.forEach(function(l) {
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])));
71
<div id="pro-topnav-inner">
72
<%= renderProTopNav() %>
73
<%= helpers.clearFloats() %>