Source

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">
<html>
 <head>
  <?cs if:project.name ?>
   <title><?cs var:project.name?><?cs if:title ?>: <?cs var:title ?><?cs
   /if ?> - Trac</title>
  <?cs else ?>
   <title>Trac: <?cs var:title ?></title>
  <?cs /if ?>
  <style type="text/css">
   @import url("<?cs var:htdocs_location ?>css/trac.css");
   @import url("<?cs var:htdocs_location ?>css/code.css");
   <?cs if:trac.active_module == 'browser' || trac.active_module == 'log' || trac.active_module == 'file'?>
   @import url("<?cs var:htdocs_location ?>css/browser.css");
   <?cs elif:trac.active_module == 'timeline' ?>
   @import url("<?cs var:htdocs_location ?>css/timeline.css");
   <?cs elif:trac.active_module == 'changeset' || trac.active_module == 'wiki' ?>
   @import url("<?cs var:htdocs_location ?>css/changeset.css");
   <?cs elif:trac.active_module == 'newticket' || trac.active_module == 'ticket' ?>
   @import url("<?cs var:htdocs_location ?>css/ticket.css");
   <?cs elif:trac.active_module == 'report' ?>
   @import url("<?cs var:htdocs_location ?>css/report.css");
   <?cs elif:trac.active_module == 'search' ?>
   @import url("<?cs var:htdocs_location ?>css/search.css");
   <?cs /if ?>
   <?cs include "site_css.cs" ?>
  </style>
  <script src="<?cs var:$htdocs_location ?>trac.js" type="text/javascript"></script>
 </head>
<body>
<?cs include "site_header.cs" ?>
<div id="trac-main">
<div id="header">
  <a id="logo" 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 />
</div>

<form id="search" action="<?cs var:trac.href.search ?>" method="get">
 <div>
  <label for="proj-search">Search:</label>
  <input type="text" id="proj-search" name="q" size="10" value="" />
  <input type="submit" value="Search" />
  <input type="hidden" name="wiki" value="on" />
  <input type="hidden" name="changeset" value="on" />
  <input type="hidden" name="ticket" value="on" />
 </div>
</form>

<div class="nav">
 <h2>Navigation</h2>
 <ul class="subheader-links">
  <li><?cs if:trac.authname == "anonymous" || !trac.authname ?>
    <a href="<?cs var:trac.href.login ?>">Login</a>
  <?cs else ?>
    logged in as <?cs var:trac.authname ?> </li>
    <li><a href="<?cs var:trac.href.logout ?>">Logout</a>
  <?cs /if ?></li>
  <li><a accesskey="6" href="<?cs var:trac.href.wiki ?>/TracGuide">Help/Guide</a></li>
  <li style="display: none"><a accesskey="5" href="http://projects.edgewall.com/trac/wiki/TracFaq">FAQ</a></li>
  <li style="display: none"><a accesskey="0" href="<?cs var:trac.href.wiki ?>/TracAccessibility">Accessibility</a></li>
  <li class="last"><a accesskey="9" href="<?cs var:trac.href.about ?>">About Trac</a></li>
 </ul>
</div>

<?cs def:navlink(text, href, id, aclname, accesskey) ?><?cs
   if $error.type || $aclname ?><li><a href="<?cs var:href ?>" <?cs 
        if $id == $trac.active_module ?>class="active"<?cs /if ?><?cs
        if:$accesskey!="" ?> accesskey="<?cs var:$accesskey ?>"<?cs 
        /if ?>><?cs var:text ?></a></li><?cs 
   /if ?><?cs /def ?>

  <?cs if $trac.active_module == "wiki" ?>
    <?cs set:$wiki_view="wiki" ?>
  <?cs else  ?>
    <?cs set:$wiki_view="attachment" ?>
  <?cs /if  ?>
  <?cs if $trac.active_module == "ticket" ?>
    <?cs set:$ticket_view="ticket" ?>
  <?cs else  ?>
    <?cs set:$ticket_view="report" ?>
  <?cs /if  ?>
  <?cs if $trac.active_module == "log" ?>
    <?cs set:$browser_view="log" ?>
  <?cs elif $trac.active_module == "file" ?>
    <?cs set:$browser_view="file" ?>
  <?cs else  ?>
    <?cs set:$browser_view="browser" ?>
  <?cs /if  ?>

<div id="navbar" class="nav">
 <ul>
  <?cs call:navlink("Wiki", $trac.href.wiki, $wiki_view,
                    $trac.acl.WIKI_VIEW, "1") ?>
  <?cs call:navlink("Timeline", $trac.href.timeline, "timeline",
                    $trac.acl.TIMELINE_VIEW, "2") ?>
  <?cs call:navlink("Browse Source", $trac.href.browser, $browser_view,
                    $trac.acl.BROWSER_VIEW, "") ?>
  <li style="display: none"><a href="<?cs var:$trac.href.newticket ?>"
                    accesskey="7">New Ticket (Accessibility)</a></li>
  <?cs call:navlink("View Tickets", $trac.href.report, $ticket_view,
                    $trac.acl.REPORT_VIEW, "") ?>
  <?cs call:navlink("New Ticket", $trac.href.newticket, "newticket",
                    $trac.acl.TICKET_CREATE, "9") ?>
  <?cs call:navlink("Search", $trac.href.search, "search",
                    $trac.acl.SEARCH_VIEW, "4") ?>
 </ul>
</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.