downloads: fixed archive links from file tree view

This commit is contained in:
Marcin Kuzminski 2019-03-05 10:49:14 +01:00
parent cbd41c4079
commit b7abd4d97b

View file

@ -30,7 +30,7 @@
% if c.enable_downloads:
<% at_path = '{}.zip'.format(request.GET.get('at') or c.commit.raw_id[:6]) %>
<div title="${_('Download tree at {}').format(at_path)}" class="btn btn-default new-file">
<a href="${h.route_path('repo_archivefile',repo_name=c.repo_name, fname=c.commit.raw_id)}">
<a href="${h.route_path('repo_archivefile',repo_name=c.repo_name, fname='{}.zip'.format(c.commit.raw_id))}">
${_('Download tree at {}').format(at_path)}
</a>
</div>