| 735 | | format = 'raw' |
| 736 | | href = get_resource_url(self.env, attachment, formatter.href, |
| 737 | | format=format) |
| 738 | | return tag.a(label, class_='attachment', href=href + params, |
| 739 | | title=get_resource_name(self.env, attachment)) |
| | 736 | return tag.a(label, class_='attachment', |
| | 737 | href=raw_href + params, |
| | 738 | title=get_resource_name(self.env, attachment)) |
| | 739 | href = get_resource_url(self.env, attachment, formatter.href) |
| | 740 | title = get_resource_name(self.env, attachment) |
| | 741 | img = tag.img(src=formatter.href.chrome('common/download.png'), |
| | 742 | alt=_("Original format")) |
| | 743 | return tag(tag.a(label, class_='attachment', title=title, |
| | 744 | href=href + params), |
| | 745 | tag.span(" ", |
| | 746 | tag.a(img, class_='trac-rawlink', |
| | 747 | href=raw_href + params, |
| | 748 | title=_("Original format")), |
| | 749 | class_="noprint")) |