trac-macos / tracmacos / templates / mac_theme.html

<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:xi="http://www.w3.org/2001/XInclude"
      xmlns:py="http://genshi.edgewall.org/"
      py:strip="">

  <ul py:def="navigation(category, skip)" class="menu">
    <li id="${category}" class="nav">
      <ul py:if="chrome.nav[category]">
        <li py:for="idx, item in  enumerate(i for i in chrome.nav[category] if i.name not in skip)"
            class="${classes(first_last(idx, chrome.nav[category]), active=item.active)}">${item.label}</li>
      </ul>
    </li>
  </ul>

  <py:match path="body" once="true" buffer="false"><body>
    <div id="mainpanel" class="nav">
      <span> 
        <ul style="padding: 0px;">
          <li id="mainmenu"> 
            <div id="mainbutton">
              <div class="round4"></div>
              <div class="round2"></div>
              <div class="round1"></div>
              <div class="box-inner"></div>
              <div class="round1"></div>
              <div class="round2"></div>
              <div class="round4"></div>
            </div>
            ${navigation("mainnav", [])}
          </li>
        </ul>
      </span>
      <span id="navitem" class="active">
        <py:with vars="active = [item.label for item in chrome.nav.get('mainnav', []) if item.active]">
          <py:choose test="">
            <py:when test="active">
              ${active[0]}
            </py:when>
            <py:otherwise>
              <a href="${req.href.about()}"> Trac</a>
            </py:otherwise>
          </py:choose>
        </py:with>
      </span>
      <span id="ctxtnav" class="nav">
        <h2>Context Navigation</h2>
          <ul py:if="chrome.ctxtnav">
            <li py:for="i, elm in enumerate(chrome.ctxtnav)" class="${i == 0 and 'first ' or None}${i+1 == len(chrome.ctxtnav) and 'last' or None}">$elm</li>
          </ul>
        <hr />
      </span>
      <span py:with="metaitems = ('login', 'logout', 'prefs', 'help', 'about')" 
            id="metanav" class="nav">
        <ul py:if="chrome.nav['metanav']">
          <li py:for="idx, item in  enumerate(chrome.nav['metanav'])" py:if="item.name in metaitems"
              class="${(classes(first_last(idx, chrome.nav['metanav']), active=item.active) or '') + ' ' + item.name}">
            ${item.label}
          </li>
          <li class="more">
            <em>more</em>
            ${navigation("metanav", metaitems)}
          </li>
        </ul>
      </span>
    </div>
    <div id="banner" py:choose="">
      <form id="search" action="${href.search()}" method="get">
        <div py:if="'SEARCH_VIEW' in perm">
          <label for="proj-search">Search:</label>
          <input type="text" id="proj-search" name="q" size="18" accesskey="f" value="" />
          <input type="submit" value="Search" />
        </div>
      </form>
      <div id="header" py:choose="" style="width: 65%;">
        <div py:when="chrome.logo.src" style="vertical-align: middle;"> 
          <div style="float: left; min-height: 2.5em; height: auto;">
            <a id="logo" href="${chrome.logo.link or href.wiki('TracIni')+'#header_logo-section'}">
                <img src="${chrome.logo.src}" alt="${chrome.logo.alt}" 
                     height="55px" width="153px" />
            </a> 
          </div>
          <div id="pname"> ${project.name} </div>
          <div id="psum"> ${project.descr} </div>
        </div>
        <h1 py:otherwise="">
          <a href="${chrome.logo.link or href.wiki('TracIni')+'#header_logo-section'}">
            ${project.name}
          </a>
        </h1>
      </div>
      <!-- > ${navigation('metanav')} <!-->

    </div>
    <div id="outer-wrapper">
      <div id="content-wrapper">

        <div id="main-wrapper">
          <!-- >
          <div id="ctxtnav" class="nav">
            <h2>Context Navigation</h2>
              <ul py:if="chrome.ctxtnav">
                <li py:for="i, elm in enumerate(chrome.ctxtnav)" class="${i == 0 and 'first ' or None}${i+1 == len(chrome.ctxtnav) and 'last' or None}">$elm</li>
              </ul>
            <hr />
          </div>
          <!-->
          <div id="main">
            <div id="warning" py:if="chrome.warnings" class="system-message">
              <py:choose test="len(chrome.warnings)">
                <py:when test="1">
                  <strong>Warning:</strong> ${chrome.warnings[0]}
                </py:when>
                <py:otherwise>
                  <strong>Warnings:</strong>
                  <ul><li py:for="w in chrome.warnings">$w</li></ul>
                </py:otherwise>
              </py:choose>
            </div>
            <div id="notice" py:if="chrome.notices" class="system-message">
              <py:choose test="len(chrome.notices)">
                <py:when test="1">
                  <strong>Notice:</strong> ${chrome.notices[0]}
                </py:when>
                <py:otherwise>
                  <strong>Notices:</strong>
                  <ul><li py:for="w in chrome.notices">$w</li></ul>
                </py:otherwise>
              </py:choose>
            </div>
      
            ${select('*|text()')}
        
          
          </div>  
      
        </div>
      </div>
      
    </div>
    <div id="footer" xml:lang="en"><hr/>
      <a id="tracpowered" href="http://trac.edgewall.org/"><img
          src="${chrome.htdocs_location}trac_logo_mini.png" height="30"
          width="107" alt="Trac Powered"/></a>
      <p class="left">
        Powered by <a href="${href.about()}"><strong>Trac ${trac.version}</strong></a>.
        By <a href="http://www.edgewall.org/">Edgewall Software</a>.
        <br />
        PyTpp theme - maintained by <a href="http://simelo-es.blogspot.com/">Olemis Lang</a>.
      </p>
      <p class="right">${chrome.footer}</p>
    </div>
  </body></py:match>
</html>
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.