root/customroadmapplugin/0.11/trac-0.11dev.patch

Revision 2348, 1.2 kB (checked in by davecole, 2 years ago)

CustomRoadmapPlugin:

First public version.

  • trac/templates/macros.html

    old new  
    231231      </tr> 
    232232    </table> 
    233233    <p class="percent">${percent is None and '%d%%' % stats.done_percent or percent}</p> 
    234     <dl py:if="legend"> 
     234    <dl class="progress" py:if="legend"> 
    235235      <py:for each="idx, interval in enumerate(stats.intervals)"> 
    236         <dt>${interval.title.capitalize()} ${stats.unit}s:</dt> 
     236        <dt class="$interval.css_class">${interval.title.capitalize()} ${stats.unit}s:</dt> 
    237237        <dd><a href="${interval_hrefs[idx]}">${interval.count}</a></dd> 
    238238      </py:for> 
    239239      <py:if test="stats_href"> 
  • trac/web/chrome.py

    old new  
    561561        if content_type is None: 
    562562            content_type = 'text/html' 
    563563        method = {'text/html': 'xhtml', 
     564                  'text/css': 'text', 
    564565                  'text/plain': 'text'}.get(content_type, 'xml') 
    565566 
    566567        template = self.load_template(filename, method=method) 
Note: See TracBrowser for help on using the browser.