summaryrefslogtreecommitdiffstats
path: root/app/views/attachments/_links.html.erb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-01-20 08:50:39 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-01-20 08:50:39 +0000
commit7467c145c03c07f42c844d52956fa708bb7d05ee (patch)
tree29b5d09a64047cf076c3eca8257c087de3fea268 /app/views/attachments/_links.html.erb
parent2ec87100a91f88e8eb220225141a3873e9aaf933 (diff)
downloadredmine-7467c145c03c07f42c844d52956fa708bb7d05ee.tar.gz
redmine-7467c145c03c07f42c844d52956fa708bb7d05ee.zip
Replace uses of image_tag() with CSS (#21256).
* Replace image_tag() with CSS classes * Create some CSS classes where necessary * Change "check all" positioned on the right in "Trackers -> Summary" and "Roles -> Permissions report" instead of left like in "Worfklow" * Add missing title attribute in a few places * Makes some lines shorter while at it Patch by Daniel Ritz. git-svn-id: http://svn.redmine.org/redmine/trunk@15068 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/attachments/_links.html.erb')
-rw-r--r--app/views/attachments/_links.html.erb26
1 files changed, 15 insertions, 11 deletions
diff --git a/app/views/attachments/_links.html.erb b/app/views/attachments/_links.html.erb
index 0804b8002..53324c221 100644
--- a/app/views/attachments/_links.html.erb
+++ b/app/views/attachments/_links.html.erb
@@ -1,24 +1,28 @@
<div class="attachments">
<div class="contextual">
- <%= link_to image_tag('edit.png'),
- container_attachments_edit_path(container),
- :title => l(:label_edit_attachments) if options[:editable] %>
+ <%= link_to('',
+ container_attachments_edit_path(container),
+ :title => l(:label_edit_attachments),
+ :class => 'icon-only icon-edit'
+ ) if options[:editable] %>
</div>
<% for attachment in attachments %>
<p><%= link_to_attachment attachment, :class => 'icon icon-attachment', :download => true -%>
<% if attachment.is_text? %>
- <%= link_to image_tag('magnifier.png'),
- :controller => 'attachments', :action => 'show',
- :id => attachment, :filename => attachment.filename %>
+ <%= link_to '',
+ { :controller => 'attachments', :action => 'show',
+ :id => attachment, :filename => attachment.filename },
+ :class => 'icon icon-magnifier',
+ :title => l(:button_view) %>
<% end %>
<%= " - #{attachment.description}" unless attachment.description.blank? %>
<span class="size">(<%= number_to_human_size attachment.filesize %>)</span>
<% if options[:deletable] %>
- <%= link_to image_tag('delete.png'), attachment_path(attachment),
- :data => {:confirm => l(:text_are_you_sure)},
- :method => :delete,
- :class => 'delete',
- :title => l(:button_delete) %>
+ <%= link_to '', attachment_path(attachment),
+ :data => {:confirm => l(:text_are_you_sure)},
+ :method => :delete,
+ :class => 'delete icon-only icon-del',
+ :title => l(:button_delete) %>
<% end %>
<% if options[:author] %>
<span class="author"><%= attachment.author %>, <%= format_time(attachment.created_on) %></span>