Changes between Version 10 and Version 11 of CookBook/SiteHtml/Genshi
- Timestamp:
- Jan 10, 2015, 10:51:12 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CookBook/SiteHtml/Genshi
v10 v11 1 1 = Interface Customization using site.html 2 2 3 This page intends to collect useful snippets for inclusing in a project `site.html` file. Any snippet below is intended to be includedinside the standard root element of the file:3 This page collects useful snippets for inclusion in a project `site.html` file. A snippet should reside inside the standard root element of the file: 4 4 5 5 {{{ … … 15 15 }}} 16 16 17 Remember, snippets are more useful if accompanied by a short description...17 Ideally, snippets are accompanied by a short description. 18 18 19 19 == Quicksearch for tickets only 20 20 21 When no search filters are provided, Trac searches using all filters. This snippets adds a filter to the quicksearch that restricts searches to tickets only by default - more can of course be added by user after initial search:21 When no search filters are provided, Trac searches using all filters. This snippets adds a filter to the quicksearch that restricts searches to tickets only by default. More can of course be added by user after initial search: 22 22 23 23 {{{ … … 34 34 == Add licensing information when adding attachments 35 35 36 If adding attachments to your Trac site requires people to agree to some licensing , you can add the terms of the license on the "Add attachments" page as follows:36 If adding attachments to your Trac site requires people to agree to some licensing terms, you can add the terms of the license on the "Add attachments" page as follows: 37 37 38 38 {{{#!xml 39 39 <py:match path="form[@id='attachment']/div[@class='buttons']" once="true"> 40 40 <p>By submitting a file here, you accept that we can do whatever 41 we want with it , blah blah...</p>41 we want with it...</p> 42 42 <div py:attrs="select('@*')"> 43 43 ${select('*|comment()|text()')} … … 60 60 }}} 61 61 62 == Replace footer 62 63 63 == Replace footer 64 If you want to change the default footer, this snippet strips out the current one and puts in my own. Tested with 1.0.1. Apologies for the formatting. 65 64 If you want to change the default footer, this snippet strips out the current one and puts in my own. Tested with 1.0.1. 66 65 {{{#!xml 67 66 <!--! Replace standard footer with a site-specific footer --> … … 70 69 <hr /> 71 70 <a id="tracpowered" href="http://www.tnky.ca/"><img src="http://www.tnky.ca/TAI_tag.jpg" 72 style="border: none; height: 98px; width: 185px; 71 style="border: none; height: 98px; width: 185px;" alt="TAI Powered" /></a> 73 72 <p class="left">Base Software is <a href="/about"><strong>Trac 1.0.1</strong></a><br /> 74 73 By Edgewall Software.</p> … … 80 79 81 80 82 83 81 ---- 84 82 See also: TracInterfaceCustomization, SiteStyleCss