Project

General

Profile

Feature #25988 » 0003-Use-new-icon-download-class-for-downloads.patch

Jan from Planio www.plan.io, 2017-05-17 16:37

View differences:

app/helpers/issues_helper.rb
value = link_to_attachment(atta, only_path: options[:only_path])
if options[:only_path] != false
value += ' '
value += link_to_attachment atta, class: 'icon-only icon-save', title: l(:button_download), download: true
value += link_to_attachment atta, class: 'icon-only icon-download', title: l(:button_download), download: true
end
else
value = content_tag("i", h(value)) if value
app/views/attachments/_links.html.erb
<span class="author"><%= attachment.author %>, <%= format_time(attachment.created_on) %></span>
<% end %>
</td>
<td><%= link_to_attachment attachment, class: 'icon-only icon-save', title: l(:button_download), download: true -%></td>
<td><%= link_to_attachment attachment, class: 'icon-only icon-download', title: l(:button_download), download: true -%></td>
<td>
<% if options[:deletable] %>
<%= link_to l(:button_delete), attachment_path(attachment),
app/views/files/index.html.erb
<td class="downloads"><%= file.downloads %></td>
<td class="digest"><%= file.digest_type %>: <%= file.digest %></td>
<td class="buttons">
<%= link_to_attachment file, class: 'icon-only icon-save', title: l(:button_download), download: true %>
<%= link_to(image_tag('delete.png'), attachment_path(file),
<%= link_to_attachment file, class: 'icon-only icon-download', title: l(:button_download), download: true %>
<%= link_to(l(:button_delete), attachment_path(file), :class => 'icon-only icon-del',
:data => {:confirm => l(:text_are_you_sure)}, :method => :delete) if delete_allowed %>
</td>
</tr>
public/stylesheets/application.css
.icon-del { background-image: url(../images/delete.png); }
.icon-move { background-image: url(../images/move.png); }
.icon-save { background-image: url(../images/save.png); }
.icon-download { background-image: url(../images/save.png); }
.icon-cancel { background-image: url(../images/cancel.png); }
.icon-multiple { background-image: url(../images/table_multiple.png); }
.icon-folder { background-image: url(../images/folder.png); }
(5-5/8)