Always show the wiki path, even for toplevel pages and show a clickable ''wiki:'' prefix.
Closes #8857.
diff --git a/trac/htdocs/css/wiki.css b/trac/htdocs/css/wiki.css
|
a
|
b
|
|
| 3 | 3 | /* Styles for the path of hierarchical pages */ |
| 4 | 4 | p.path { margin: 0; padding: 0 0 .5em; font-size: .75em } |
| 5 | 5 | p.path :link, p.path :visited { margin: 0 .2em } |
| | 6 | |
| 6 | 7 | p.path .sep { color: #666; padding: 0 .1em } |
| 7 | 8 | p.path .pathentry { float: left } |
| 8 | 9 | |
diff --git a/trac/wiki/templates/wiki_view.html b/trac/wiki/templates/wiki_view.html
|
a
|
b
|
|
| 14 | 14 | jQuery(document).ready(function($) { |
| 15 | 15 | $("#content").find("h1,h2,h3,h4,h5,h6").addAnchor("Link to this section"); |
| 16 | 16 | $("#content").find(".wikianchor").each(function() { |
| 17 | | $(this).addAnchor("Link to #"+$(this).attr('id')) |
| | 17 | $(this).addAnchor("Link to #"+$(this).attr('id')) |
| 18 | 18 | }); |
| 19 | 19 | $(".foldable").enableFolding(true); |
| 20 | 20 | }); |
| … |
… |
|
| 24 | 24 | <body> |
| 25 | 25 | <div id="content" class="wiki"> |
| 26 | 26 | |
| 27 | | <p class="path noprint" py:if="'/' in page.name" py:with="parts = page.name.split('/')"> |
| | 27 | <p class="path noprint" py:with="parts = page.name.split('/')"> |
| | 28 | <a class="pathentry first" title="View WikiStart" href="href.wiki()">wiki:</a> |
| 28 | 29 | <py:for each="idx, part in enumerate(parts)"><a |
| 29 | | class="pathentry" title="View ${'/'.join(parts[:idx + 1])}" href="${href.wiki(*parts[:idx + 1])}">${part}</a><span |
| | 30 | class="pathentry" title="View ${'/'.join(parts[:idx + 1])}" |
| | 31 | href="${href.wiki(*parts[:idx + 1])}">${part}</a><span |
| 30 | 32 | class="pathentry sep" py:if="idx != len(parts) - 1">/</span></py:for> |
| 31 | 33 | <br style="clear: both" /> |
| 32 | 34 | </p> |
| … |
… |
|
| 118 | 120 | <li py:for="markup in related">${markup}</li> |
| 119 | 121 | </ul> |
| 120 | 122 | </div> |
| 121 | | |
| | 123 | |
| 122 | 124 | </div> |
| 123 | 125 | </body> |
| 124 | 126 | </html> |