root/trac-0.10.3/templates/header.cs

Revision 173, 2.9 kB (checked in by cedenoj, 10 months ago)

refs #2723 Adding the project name to the right of the bs logo on the orange bar. Also adding the o.e logo to the right side of the orange bar. A link to create a new ticket is added to the top section of the first report

Line 
1 <!DOCTYPE html
2     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
5 <head><?cs
6  if:project.name_encoded ?>
7  <title><?cs if:title ?><?cs var:title ?> - <?cs /if ?><?cs
8    var:project.name_encoded ?> - Trac</title><?cs
9  else ?>
10  <title>Trac: <?cs var:title ?></title><?cs
11  /if ?><?cs
12  if:html.norobots ?>
13  <meta name="ROBOTS" content="NOINDEX, NOFOLLOW" /><?cs
14  /if ?><?cs
15  each:rel = chrome.links ?><?cs
16   each:link = rel ?><link rel="<?cs
17    var:name(rel) ?>" href="<?cs var:link.href ?>"<?cs
18    if:link.title ?> title="<?cs var:link.title ?>"<?cs /if ?><?cs
19    if:link.type ?> type="<?cs var:link.type ?>"<?cs /if ?> /><?cs
20   /each ?><?cs
21  /each ?><style type="text/css"><?cs include:"site_css.cs" ?></style><?cs
22  each:script = chrome.scripts ?>
23  <script type="<?cs var:script.type ?>" src="<?cs var:script.href ?>"></script><?cs
24  /each ?>
25  <link rel="stylesheet" href="<?cs var:chrome.href ?>/common/css/bs.css" type="text/css" />
26 <script src="/social/mod/toolbar/js.php"></script>
27 </head>
28 <body>
29 <?cs include "site_header.cs" ?>
30 <div id="banner">
31
32 <div id="header">
33 <div style="float:right;">
34 <img src="/projects/admin/chrome/common/wordmark.gif"/>
35 </div>
36 <?cs
37  if:chrome.logo.src ?><a id="logo" href="<?cs
38   var:chrome.logo.link ?>"><img src="<?cs var:chrome.logo.src ?>"<?cs
39   if:chrome.logo.width ?> width="<?cs var:chrome.logo.width ?>"<?cs /if ?><?cs
40   if:chrome.logo.height ?> height="<?cs var:chrome.logo.height ?>"<?cs
41   /if ?> alt="<?cs var:chrome.logo.alt ?>" /><h1><?cs var:project.name_encoded ?></h1></a><?cs
42  elif:project.name_encoded ?><h1><a href="<?cs var:chrome.logo.link ?>"><?cs
43   var:project.name_encoded ?></a></h1><?cs
44  /if ?></div>
45
46 <form id="search" action="<?cs var:trac.href.search ?>" method="get">
47  <?cs if:trac.acl.SEARCH_VIEW ?><div>
48   <label for="proj-search">Search:</label>
49   <input type="text" id="proj-search" name="q" size="10" accesskey="f" value="" />
50   <input type="submit" value="Search" />
51   <input type="hidden" name="wiki" value="on" />
52   <input type="hidden" name="changeset" value="on" />
53   <input type="hidden" name="ticket" value="on" />
54  </div><?cs /if ?>
55 </form>
56
57 <?cs def:nav(items) ?><?cs
58  if:len(items) ?><ul><?cs
59   set:idx = 0 ?><?cs
60   set:max = len(items) - 1 ?><?cs
61   each:item = items ?><?cs
62    set:first = idx == 0 ?><?cs
63    set:last = idx == max ?><li<?cs
64    if:first || last || item.active ?> class="<?cs
65     if:item.active ?>active<?cs /if ?><?cs
66     if:item.active && (first || last) ?> <?cs /if ?><?cs
67     if:first ?>first<?cs /if ?><?cs
68     if:(item.active || first) && last ?> <?cs /if ?><?cs
69     if:last ?>last<?cs /if ?>"<?cs
70    /if ?>><?cs var:item ?></li><?cs
71    set:idx = idx + 1 ?><?cs
72   /each ?></ul><?cs
73  /if ?><?cs
74 /def ?>
75
76 <div id="metanav" class="nav"><?cs call:nav(chrome.nav.metanav) ?></div>
77 </div>
78
79 <div id="mainnav" class="nav"><?cs call:nav(chrome.nav.mainnav) ?></div>
80 <div id="main">
Note: See TracBrowser for help on using the browser.