files: change download title for button

This commit is contained in:
Marcin Kuzminski 2019-05-23 10:24:59 +02:00
parent 8e476eb249
commit 32c910eeaf

View file

@ -24,10 +24,10 @@
% endif
% 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">
<% at_path = '{}'.format(request.GET.get('at') or c.commit.raw_id[:6]) %>
<div class="btn btn-default new-file">
<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)}
${_('Download ZIP @ ')} <code>${at_path}</code>
</a>
</div>
% endif