Changeset 191

Show
Ignore:
Timestamp:
02/28/07 15:19:38 (3 years ago)
Author:
lazaridis_com
Message:

re #110, merged the revisions 4868 into the customized templates

Location:
infra/tracx/tracx/templates
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • infra/tracx/tracx/templates/layout.html

    r143 r191  
    2525    <script py:for="script in chrome.scripts" 
    2626            type="${script.type}" src="${script.href}"></script> 
     27    ${Markup('&lt;!--[if IE lt 7]&gt;')} 
     28    <script type="text/javascript" src="${href.chrome('common/js/ie_pre7_hacks.js')}"></script> 
     29    ${Markup('&lt;![endif]--&gt;')} 
    2730    ${select("*[local-name() != 'title']")} 
    2831  </head> 
     
    3336    <ul py:if="chrome.nav[category]"> 
    3437      <li py:for="idx, item in  enumerate(chrome.nav[category])" 
    35           class="${item.active and 'active ' or ''}${first_last(idx, chrome.nav[category])}">${item.label}</li> 
     38          class="${classes(first_last(idx, chrome.nav[category]), active=item.active)}">${item.label}</li> 
    3639    </ul> 
    3740  </div> 
     
    8285          <li py:for="idx, link in enumerate(chrome.links.alternate)" 
    8386            class="${first_last(idx, chrome.links.alternate)}"> 
    84             <a href="${link.href}" class="${link['class']}" py:content="link.title" /> 
     87            <a rel="nofollow" href="${link.href}" class="${link['class']}" py:content="link.title" /> 
    8588          </li> 
    8689        </ul> 
     
    8891    </div> 
    8992 
    90  
    9193    <div id="footer"><hr/> 
    9294      ${navigationl('footnav')} 
    9395      <p class="right">${chrome.footer}</p>       
    9496    </div> 
    95      
    96  
    9797  </body> 
    9898 
  • infra/tracx/tracx/templates/wiki_view.html

    r189 r191  
    2222    <div id="ctxtnav" class="nav"> 
    2323      <h2>Wiki Navigation</h2> 
    24       <ul> 
    25         <li><a href="${href.wiki('WikiStart')}">Start Page</a></li> 
    26         <li><a href="${href.wiki('TitleIndex')}">Index by Title</a></li> 
    27         <li><a href="${href.wiki('RecentChanges')}">Index by Date</a></li> 
    28         <li class="last"> 
    29           <a href="${req.href.wiki(page.name, action='diff', version=page.version)}">Last Change</a> 
    30         </li> 
    31       </ul> 
     24      <py:choose> 
     25        <py:when test="version"> 
     26          ${prevnext_nav('Version', 'View Latest Version')} 
     27        </py:when> 
     28        <ul py:otherwise=""> 
     29          <li><a href="${href.wiki('WikiStart')}">Start Page</a></li> 
     30          <li><a href="${href.wiki('TitleIndex')}">Index by Title</a></li> 
     31          <li><a href="${href.wiki('RecentChanges')}">Index by Date</a></li> 
     32          <li class="last"> 
     33            <a href="${req.href.wiki(page.name, action='diff', version=page.version)}">Last Change</a> 
     34          </li> 
     35        </ul> 
     36        </py:choose> 
    3237      <hr /> 
    3338    </div> 
     
    4550   
    4651  <div py:if="chrome.nav['tracnav']">   
    47     ${wiki_to_html('[[TracNav]]')} 
     52    ${wiki_to_html(context, '[[TracNav]]')} 
    4853  </div> 
    4954     
     
    5257          <tbody> 
    5358            <tr><th scope="row"> 
    54               Version $page.version (modified by $page.author, ${dateinfo(page.time)} ago) 
     59                Version $page.version (modified by ${authorinfo(page.author)}, ${dateinfo(page.time)} ago) 
    5560            </th></tr> 
    5661            <tr><td class="message"> 
    57               ${wiki_to_oneliner(comment or '--')} 
     62              ${wiki_to_html(context, page.comment or '--')} 
    5863            </td></tr> 
    5964          </tbody> 
     
    6368      <div class="wikipage searchable" py:choose=""> 
    6469        <py:when test="page.exists"> 
    65           ${wiki_to_html(page.text)} 
     70          ${wiki_to_html(context, page.text)} 
    6671        </py:when> 
    6772        <py:otherwise> 
     
    7075      </div> 
    7176 
    72       ${list_of_attachments(attachments, attach_href, compact=True)} 
     77      ${list_of_attachments(context, attachments, attach_href, compact=True)} 
    7378 
    7479      <py:with vars="modify_perm = 'WIKI_MODIFY' in perm;