Skip to content

Commit 238c5cc

Browse files
committed
custom styles for attachment links, move download icon infront of a file
name
1 parent 496b0d3 commit 238c5cc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/views/attachments/_links.html.erb

+4-3
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212
<% preview_tag_id = SecureRandom.uuid.to_s.gsub(/\-/, "_") %>
1313
<tr>
1414
<td>
15+
<%= link_to_attachment attachment, class: 'icon-only icon-download icon-download-custom', title: l(:button_download), download: true -%>
1516
<%= link_to_attachment attachment, class: 'icon icon-attachment' -%>
16-
<span class="icon icon-magnifier" onclick="<%= "$.ajax({url:'#{view_attachment_inline_path(attachment.id, preview_tag_id)}', type: 'post'}); $('##{preview_row_id}').toggle();".html_safe %>"</span>
17-
<span class="size">(<%= number_to_human_size attachment.filesize %>)</span>
18-
<%= link_to_attachment attachment, class: 'icon-only icon-download', title: l(:button_download), download: true -%>
17+
<span class="icon icon-magnifier icon-magnifier-custom" onclick="<%= "$.ajax({url:'#{view_attachment_inline_path(attachment.id, preview_tag_id)}', type: 'post'}); $('##{preview_row_id}').toggle();".html_safe %>">
18+
<span class="size">(<%= number_to_human_size attachment.filesize %>)</span>
19+
</span>
1920
</td>
2021
<td><%= attachment.description unless attachment.description.blank? %></td>
2122
<td>

0 commit comments

Comments
 (0)