Feature #25999 » 0002-Add-download-icon-to-download-links-on-file-and-repo.patch
app/views/layouts/_file.html.erb | ||
---|---|---|
3 | 3 |
<div class="attachments"> |
4 | 4 |
<p><%= "#{@attachment.description} - " unless @attachment.description.blank? %> |
5 | 5 |
<span class="author"><%= link_to_user(@attachment.author) %>, <%= format_time(@attachment.created_on) %></span></p> |
6 |
<p><%= link_to_attachment @attachment, :text => l(:button_download), :download => true -%> |
|
6 |
<p><%= link_to_attachment @attachment, :text => l(:button_download), :download => true, :class => 'icon icon-download' -%>
|
|
7 | 7 |
<span class="size">(<%= number_to_human_size @attachment.filesize %>)</span></p> |
8 | 8 |
</div> |
9 | 9 |
<%= yield %> |
app/views/repositories/_link_to_functions.html.erb | ||
---|---|---|
12 | 12 |
{:action => 'raw', :id => @project, |
13 | 13 |
:repository_id => @repository.identifier_param, |
14 | 14 |
:path => to_path_param(@path), |
15 |
:rev => @rev}) if @repository.supports_cat? %> |
|
15 |
:rev => @rev}, class: 'icon icon-download') if @repository.supports_cat? %>
|
|
16 | 16 |
<%= "(#{number_to_human_size(@entry.size)})" if @entry.size %> |
17 | 17 |
</p> |
18 | 18 |