Index: trac/templates/macros.html
===================================================================
--- trac/templates/macros.html	(revision 8160)
+++ trac/templates/macros.html	(working copy)
@@ -161,6 +161,7 @@
   <py:def function="list_of_attachments(alist, compact=False, add_button_title=None)">
     <py:def function="show_one_attachment(attachment)">
       <a href="${url_of(attachment.resource)}" title="View attachment">$attachment.filename</a>
+      <a href="${url_of(attachment.resource, format='raw')}" title="Original format"><img src="${chrome.htdocs_location}download.gif" alt="download"/></a>
       (${sizeinfo(attachment.size)}) - added by <em>${authorinfo(attachment.author)}</em>
       ${dateinfo(attachment.date)} ago.
     </py:def>

