Edgewall Software

Ticket #7228: download-icon-in-size-column.patch

File download-icon-in-size-column.patch, 1.9 KB (added by cboos, 22 months ago)

Move the download icon in the Size column, after the size information (applies on attachment:7228-download-source-r9966.patch)

  • trac/htdocs/css/browser.css

    # HG changeset patch
    # Parent f30fd66a438ce77f9ad54fcb778e35c769fa6e74
    Move the download icon in the ''Size'' column, after the size information.
    
    diff --git a/trac/htdocs/css/browser.css b/trac/htdocs/css/browser.css
    a b table.dirlist td.size { 
    6363 vertical-align: middle; 
    6464 font-size: 70%; 
    6565} 
     66table.dirlist td.size a.trac-rawlink { 
     67 margin-left: .3em; 
     68} 
    6669table.dirlist td.age { 
    6770 border-width: 0 2px 0 0; 
    6871 border-style: solid; 
  • trac/versioncontrol/templates/dir_entries.html

    diff --git a/trac/versioncontrol/templates/dir_entries.html b/trac/versioncontrol/templates/dir_entries.html
    a b  
    1010        <td class="name"> 
    1111          <a class="$entry.kind" title="${entry.kind == 'dir' and _('View Directory') or _('View File')}" 
    1212             href="${href.browser(reponame, entry.path, rev=stickyrev,  
    13                                   order=(order != 'name' and order or None), desc=desc)}">$entry.name</a><a 
    14              py:if="entry.raw_href" class="trac-rawlink" href="$entry.raw_href" 
    15              title="${entry.kind == 'dir' and _('Download as Zip archive') or _('Download')}"></a> 
     13                                  order=(order != 'name' and order or None), desc=desc)}">$entry.name</a> 
    1614        </td> 
    1715        <td class="size"> 
    18           <span title="${_('%(size)s bytes', size=entry.content_length)}">${pretty_size(entry.content_length)}</span> 
     16          <span title="${_('%(size)s bytes', size=entry.content_length)}">${pretty_size(entry.content_length) 
     17            }</span><a py:if="entry.raw_href" class="trac-rawlink" href="$entry.raw_href" 
     18                       title="${entry.kind == 'dir' and _('Download as Zip archive') or _('Download')}"></a> 
    1919        </td> 
    2020        <td class="rev"> 
    2121          <a title="View Revision Log" href="${href.log(reponame, entry.path, rev=rev)}">${display_rev(entry.rev)}</a>