trac-ticketlinks / templates / header.cs

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-strict.dtd">

<?cs def:navlink(text, href, id, aclname) ?>
  <?cs if $trac.acl.+aclname ?>
      <a href="<?cs var:href ?>" class="navbar-link<?cs if $id == $trac.active_module ?>-active<?cs /if ?>"><?cs var:text ?></a>
    <span class="hide"> | </span>
  <?cs /if ?>
<?cs /def ?>
<html>
  <head>
    <?cs if $project.name ?>
      <title>Trac | <?cs var:project.name?> | <?cs var:title ?></title>
    <?cs else ?>
      <title>Trac | <?cs var:title ?></title>
    <?cs /if ?>
    <style type="text/css">
      <?cs include "css.cs" ?>
    </style>
</head>
<body>

<div id="header">
  <a id="hdrlogo" href="<?cs var:header_logo.link ?>"><img src="<?cs var:header_logo.src ?>" 
      width="<?cs var:header_logo.width ?>" 
      height="<?cs var:header_logo.height ?>" 
      alt="<?cs var:header_logo.alt ?>" /></a>
  <hr class="hide"/>
  <div id="header-links">
    <?cs if $trac.authname == "anonymous" ?>
      <a href="<?cs var:trac.href.login ?>" 
         class="navbar-link-right">Login</a> | 
    <?cs else ?> 
      logged in as <?cs var:trac.authname ?> | 
      <a href="<?cs var:trac.href.logout ?>" 
         class="navbar-link-right"> Logout </a> | 
    <?cs /if ?>
    <a href="<?cs var:trac.href.wiki ?>TracGuide" 
       class="navbar-link-right"> Help/Guide </a> | 
    <a href="<?cs var:trac.href.about ?>" 
       class="navbar-link-right"> About Trac </a>
  </div>
  <div id="navbar">
    <div id="navbar-links">
      <?cs call:navlink("Wiki", $trac.href.wiki, "wiki", 
                        "WIKI_VIEW") ?>
      <?cs call:navlink("Browser", $trac.href.browser, "browser", 
                        "BROWSER_VIEW") ?>
      <?cs call:navlink("Timeline", $trac.href.timeline, "timeline", 
                        "TIMELINE_VIEW") ?>
      <?cs call:navlink("Reports", $trac.href.report, "report", 
                        "REPORT_VIEW") ?>
      <?cs call:navlink("Search", $trac.href.search, "search", 
                        "SEARCH_VIEW") ?>
      <?cs call:navlink("New Ticket", $trac.href.newticket, "newticket", 
                        "TICKET_CREATE") ?>
    </div>
  </div>
</div>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.