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

f2e824
f2e824
<script type="text/javascript">
f2e824
addEvent(window, 'load', function() { document.getElementById('q').focus()}); 
f2e824
</script>
f2e824
f2e824
 with:links = chrome.links ?>
f2e824
  if:len(links.prev) || len(links.next) ?>
    f2e824
       if:len(links.prev) ?>
    f2e824
        
  • f2e824
    f2e824
           var:links.prev.0.title ?>
    f2e824
        
    f2e824
       /if ?>
    f2e824
       if:len(links.next) ?>
    f2e824
        
  • f2e824
         
    f2e824
           var:links.next.0.title ?>
    f2e824
        
    f2e824
       /if ?>
    f2e824
      /if ?>
    f2e824
     /with ?>
    f2e824
    f2e824
    f2e824
    f2e824
    f2e824

    <label for="q">Search</label>

    f2e824
    <form action="<?cs var:trac.href.search ?>" method="get">
    f2e824
     

    f2e824
      <input type="text" id="q" name="q" size="40" value="<?cs var:search.q ?>" />
    f2e824
      <input type="hidden" name="noquickjump" value="1" />
    f2e824
      <input type="submit" value="Search" />
    f2e824
     

    f2e824
     

    f2e824
      each filter=search.filters ?>
    f2e824
       
    f2e824
              name="" 
    f2e824
         if:filter.active ?>checked="checked" />
    f2e824
       <label for="<?cs var:filter.name ?>"></label>
    f2e824
      /each ?>
    f2e824
     

    f2e824
    </form>
    f2e824
    f2e824
    if:len(search.result) || len(search.quickjump) ?>
    f2e824
     
    f2e824
     if:len(search.result) ?>
    f2e824
     

    Search results

    f2e824
      if:search.n_pages > 1 ?>(
    f2e824
       var:(search.page-1) * search.page_size + 1 ?> - 
    f2e824
       var:(search.page-1) * search.page_size + len(search.result) ?> 
    f2e824
       of )
    f2e824
      /if ?>
    f2e824
     /if ?>
    f2e824
     
    f2e824
      
    f2e824
       if:len(search.quickjump) ?>
    f2e824
        
    Quickjump to
    f2e824
        
    f2e824
       /if ?>
    f2e824
       each item=search.result ?>
    f2e824
        
    f2e824
        
    f2e824
        
    f2e824
         By 
    f2e824
         
    f2e824
         if:item.keywords ?> &mdash
    f2e824
          Keywords: 
    f2e824
         /if ?>
    f2e824
        
    f2e824
       /each ?>
    f2e824
      
    f2e824
      
    f2e824
     
    f2e824
     if search.n_pages > 1 ?>
    f2e824
      
    f2e824
      if len(chrome.links.prev) ?>
    f2e824
        
    f2e824
           var:chrome.links.prev.0.title ?>">← 
    f2e824
      /if ?>
    f2e824
      loop:p = 1, search.n_pages ?>
    f2e824
        if p == search.page ?>
    f2e824
        else ?>
    f2e824
         var:p ?>
    f2e824
        /if ?> 
    f2e824
      /loop ?>
    f2e824
      if len(chrome.links.next) ?>
    f2e824
        
    f2e824
           var:chrome.links.next.0.title ?>">→
    f2e824
      /if ?>
    f2e824
      
    f2e824
     /if ?>
    f2e824
    f2e824
    elif:search.q && !search.quickjump ?>
    f2e824
     
    No matches found.
    f2e824
    /if ?>
    f2e824
    f2e824
    f2e824
     Note: See 
    f2e824
       var:trac.href.wiki ?>/TracSearch">TracSearch  for help on searching.
    f2e824
    f2e824
    f2e824
    f2e824