Edgewall Software

Ticket #7759: browser.patch

File browser.patch, 909 bytes (added by Guy Rozendorn, 2 years ago)

suggested patch for browser.py, to add the 'path_links[-1]' to the page title, if exists

  • trac/versioncontrol/templates/browser.html

     
    88  <xi:include href="layout.html" /> 
    99  <xi:include href="macros.html" /> 
    1010  <head> 
    11     <title>${'/'.join(part.name for part in path_links[1:]) or '/'}</title> 
     11    <title>${'/' if len(path_links)==1 else \ 
     12             '/'.join(part.name for part in path_links[1:]) if len(path_links)==2 else \ 
     13             path_links[-1].name + ' - ' + '/'.join(part.name for part in path_links[1:]) 
     14             }</title> 
    1215    <meta py:if="file and file.annotate" name="ROBOTS" content="NOINDEX, NOFOLLOW" /> 
    1316    <meta py:if="dir" name="ROBOTS" content="NOINDEX" /> 
    1417    <script type="text/javascript" src="${chrome.htdocs_location}js/folding.js"></script>