Changeset 191
- Timestamp:
- 02/28/07 15:19:38 (3 years ago)
- Location:
- infra/tracx/tracx/templates
- Files:
-
- 2 modified
-
layout.html (modified) (4 diffs)
-
wiki_view.html (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
infra/tracx/tracx/templates/layout.html
r143 r191 25 25 <script py:for="script in chrome.scripts" 26 26 type="${script.type}" src="${script.href}"></script> 27 ${Markup('<!--[if IE lt 7]>')} 28 <script type="text/javascript" src="${href.chrome('common/js/ie_pre7_hacks.js')}"></script> 29 ${Markup('<![endif]-->')} 27 30 ${select("*[local-name() != 'title']")} 28 31 </head> … … 33 36 <ul py:if="chrome.nav[category]"> 34 37 <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> 36 39 </ul> 37 40 </div> … … 82 85 <li py:for="idx, link in enumerate(chrome.links.alternate)" 83 86 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" /> 85 88 </li> 86 89 </ul> … … 88 91 </div> 89 92 90 91 93 <div id="footer"><hr/> 92 94 ${navigationl('footnav')} 93 95 <p class="right">${chrome.footer}</p> 94 96 </div> 95 96 97 97 </body> 98 98 -
infra/tracx/tracx/templates/wiki_view.html
r189 r191 22 22 <div id="ctxtnav" class="nav"> 23 23 <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> 32 37 <hr /> 33 38 </div> … … 45 50 46 51 <div py:if="chrome.nav['tracnav']"> 47 ${wiki_to_html( '[[TracNav]]')}52 ${wiki_to_html(context, '[[TracNav]]')} 48 53 </div> 49 54 … … 52 57 <tbody> 53 58 <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) 55 60 </th></tr> 56 61 <tr><td class="message"> 57 ${wiki_to_ oneliner(comment or '--')}62 ${wiki_to_html(context, page.comment or '--')} 58 63 </td></tr> 59 64 </tbody> … … 63 68 <div class="wikipage searchable" py:choose=""> 64 69 <py:when test="page.exists"> 65 ${wiki_to_html( page.text)}70 ${wiki_to_html(context, page.text)} 66 71 </py:when> 67 72 <py:otherwise> … … 70 75 </div> 71 76 72 ${list_of_attachments( attachments, attach_href, compact=True)}77 ${list_of_attachments(context, attachments, attach_href, compact=True)} 73 78 74 79 <py:with vars="modify_perm = 'WIKI_MODIFY' in perm;