Edgewall Software

Ticket #7759: attachment.patch

File attachment.patch, 932 bytes (added by guy@…, 2 years ago)

patch for attachment page title

  • trac/templates/attachment.html

     
    88  <xi:include href="layout.html" /> 
    99  <xi:include href="macros.html" /> 
    1010  <head> 
    11     <title>Attachment</title> 
     11    <title py:with="parent = attachments and attachments.parent or 
     12                             attachment.resource.parent" 
     13           py:choose="mode"> 
     14             <py:when test="'new'">${name_of(parent)} - Attachment</py:when> 
     15             <py:when test="'list'">${name_of(parent)} - Attachments</py:when> 
     16             <py:otherwise>${attachment.filename + ' - ' + name_of(parent)} - Attachment</py:otherwise> 
     17    </title> 
    1218    <py:if test="preview"> 
    1319      <script type="text/javascript" src="${chrome.htdocs_location}js/folding.js"></script> 
    1420      <script type="text/javascript">