Feature #25988 » 0003-Use-new-icon-download-class-for-downloads.patch
app/helpers/issues_helper.rb | ||
---|---|---|
471 | 471 |
value = link_to_attachment(atta, only_path: options[:only_path]) |
472 | 472 |
if options[:only_path] != false |
473 | 473 |
value += ' ' |
474 |
value += link_to_attachment atta, class: 'icon-only icon-save', title: l(:button_download), download: true
|
|
474 |
value += link_to_attachment atta, class: 'icon-only icon-download', title: l(:button_download), download: true
|
|
475 | 475 |
end |
476 | 476 |
else |
477 | 477 |
value = content_tag("i", h(value)) if value |
app/views/attachments/_links.html.erb | ||
---|---|---|
19 | 19 |
<span class="author"><%= attachment.author %>, <%= format_time(attachment.created_on) %></span> |
20 | 20 |
<% end %> |
21 | 21 |
</td> |
22 |
<td><%= link_to_attachment attachment, class: 'icon-only icon-save', title: l(:button_download), download: true -%></td>
|
|
22 |
<td><%= link_to_attachment attachment, class: 'icon-only icon-download', title: l(:button_download), download: true -%></td>
|
|
23 | 23 |
<td> |
24 | 24 |
<% if options[:deletable] %> |
25 | 25 |
<%= link_to l(:button_delete), attachment_path(attachment), |
app/views/files/index.html.erb | ||
---|---|---|
33 | 33 |
<td class="downloads"><%= file.downloads %></td> |
34 | 34 |
<td class="digest"><%= file.digest_type %>: <%= file.digest %></td> |
35 | 35 |
<td class="buttons"> |
36 |
<%= link_to_attachment file, class: 'icon-only icon-save', title: l(:button_download), download: true %>
|
|
37 |
<%= link_to(image_tag('delete.png'), attachment_path(file),
|
|
36 |
<%= link_to_attachment file, class: 'icon-only icon-download', title: l(:button_download), download: true %>
|
|
37 |
<%= link_to(l(:button_delete), attachment_path(file), :class => 'icon-only icon-del',
|
|
38 | 38 |
:data => {:confirm => l(:text_are_you_sure)}, :method => :delete) if delete_allowed %> |
39 | 39 |
</td> |
40 | 40 |
</tr> |
public/stylesheets/application.css | ||
---|---|---|
1215 | 1215 |
.icon-del { background-image: url(../images/delete.png); } |
1216 | 1216 |
.icon-move { background-image: url(../images/move.png); } |
1217 | 1217 |
.icon-save { background-image: url(../images/save.png); } |
1218 |
.icon-download { background-image: url(../images/save.png); } |
|
1218 | 1219 |
.icon-cancel { background-image: url(../images/cancel.png); } |
1219 | 1220 |
.icon-multiple { background-image: url(../images/table_multiple.png); } |
1220 | 1221 |
.icon-folder { background-image: url(../images/folder.png); } |