Blame Identity/Webenv/App/Trac/templates/header.cs

f2e824
f2e824
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
f2e824
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
f2e824
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
f2e824
<head>
f2e824
 if:project.name_encoded ?>
f2e824
 <title> - 
f2e824
   var:project.name_encoded ?> - Trac</title>
f2e824
 else ?>
f2e824
 <title>Trac: </title>
f2e824
 /if ?>
f2e824
 if:html.norobots ?>
f2e824
 <meta name="ROBOTS" content="NOINDEX, NOFOLLOW" />
f2e824
 /if ?>
f2e824
 each:rel = chrome.links ?>
f2e824
  each:link = rel ?>
f2e824
   var:name(rel) ?>" href=""
f2e824
   if:link.title ?> title=""
f2e824
   if:link.type ?> type="" />
f2e824
  /each ?>
f2e824
 /each ?><style type="text/css"></style>
f2e824
 each:script = chrome.scripts ?>
f2e824
 <script type="<?cs var:script.type ?>" src="<?cs var:script.href ?>"></script>
f2e824
 /each ?>
f2e824
</head>
f2e824
<body>
f2e824
f2e824
f2e824
f2e824
f2e824
f2e824
 if:chrome.logo.src ?>
f2e824
  var:chrome.logo.link ?>">
f2e824
  if:chrome.logo.width ?> width=""
f2e824
  if:chrome.logo.height ?> height=""
f2e824
  /if ?> alt="" />
f2e824
 elif:project.name_encoded ?>

f2e824
  var:project.name_encoded ?>
f2e824
 /if ?>
f2e824
f2e824
f2e824
<form id="search" action="<?cs var:trac.href.search ?>" method="get">
f2e824
 
f2e824
  <label for="proj-search">Search:</label>
f2e824
  <input type="text" id="proj-search" name="q" size="10" accesskey="f" value="" />
f2e824
  <input type="submit" value="Search" />
f2e824
  <input type="hidden" name="wiki" value="on" />
f2e824
  <input type="hidden" name="changeset" value="on" />
f2e824
  <input type="hidden" name="ticket" value="on" />
f2e824
 
f2e824
</form>
f2e824
f2e824
f2e824
 if:len(items) ?>
    f2e824
      set:idx = 0 ?>
    f2e824
      set:max = len(items) - 1 ?>
    f2e824
      each:item = items ?>
    f2e824
       set:first = idx == 0 ?>
    f2e824
       set:last = idx == max ?>
    f2e824
       if:first || last || item.active ?> class="
    f2e824
        if:item.active ?>active
    f2e824
        if:item.active && (first || last) ?> 
    f2e824
        if:first ?>first
    f2e824
        if:(item.active || first) && last ?> 
    f2e824
        if:last ?>last"
    f2e824
       /if ?>>
    f2e824
       set:idx = idx + 1 ?>
    f2e824
      /each ?>
    f2e824
     /if ?>
    f2e824
    /def ?>
    f2e824
    f2e824
    f2e824
    f2e824
    f2e824
    f2e824
    f2e824
    f2e824
    f2e824