# 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 { |
| 63 | 63 | vertical-align: middle; |
| 64 | 64 | font-size: 70%; |
| 65 | 65 | } |
| | 66 | table.dirlist td.size a.trac-rawlink { |
| | 67 | margin-left: .3em; |
| | 68 | } |
| 66 | 69 | table.dirlist td.age { |
| 67 | 70 | border-width: 0 2px 0 0; |
| 68 | 71 | border-style: solid; |
diff --git a/trac/versioncontrol/templates/dir_entries.html b/trac/versioncontrol/templates/dir_entries.html
|
a
|
b
|
|
| 10 | 10 | <td class="name"> |
| 11 | 11 | <a class="$entry.kind" title="${entry.kind == 'dir' and _('View Directory') or _('View File')}" |
| 12 | 12 | 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> |
| 16 | 14 | </td> |
| 17 | 15 | <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> |
| 19 | 19 | </td> |
| 20 | 20 | <td class="rev"> |
| 21 | 21 | <a title="View Revision Log" href="${href.log(reponame, entry.path, rev=rev)}">${display_rev(entry.rev)}</a> |