summaryrefslogtreecommitdiffstats
path: root/app/views/attachments
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-03-20 09:34:26 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-03-20 09:34:26 +0000
commiteaea4e9fee7e70c6df4db5b749fbe94937bbd35c (patch)
tree2c8fff46458f1aa05d2fe6202d61319bf2024a81 /app/views/attachments
parente63bf1d5970cec0e63029dd1deb36539fc844dae (diff)
downloadredmine-eaea4e9fee7e70c6df4db5b749fbe94937bbd35c.tar.gz
redmine-eaea4e9fee7e70c6df4db5b749fbe94937bbd35c.zip
Improve accessibility for icon-only links by adding hidden text (#21805).
Patch by Daniel Ritz. git-svn-id: http://svn.redmine.org/redmine/trunk@15271 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/attachments')
-rw-r--r--app/views/attachments/_links.html.erb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/attachments/_links.html.erb b/app/views/attachments/_links.html.erb
index 53324c221..a71a722ba 100644
--- a/app/views/attachments/_links.html.erb
+++ b/app/views/attachments/_links.html.erb
@@ -1,6 +1,6 @@
<div class="attachments">
<div class="contextual">
- <%= link_to('',
+ <%= link_to(l(:label_edit_attachments),
container_attachments_edit_path(container),
:title => l(:label_edit_attachments),
:class => 'icon-only icon-edit'
@@ -9,16 +9,16 @@
<% for attachment in attachments %>
<p><%= link_to_attachment attachment, :class => 'icon icon-attachment', :download => true -%>
<% if attachment.is_text? %>
- <%= link_to '',
+ <%= link_to l(:button_view),
{ :controller => 'attachments', :action => 'show',
:id => attachment, :filename => attachment.filename },
- :class => 'icon icon-magnifier',
+ :class => 'icon-only 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 '', attachment_path(attachment),
+ <%= link_to l(:button_delete), attachment_path(attachment),
:data => {:confirm => l(:text_are_you_sure)},
:method => :delete,
:class => 'delete icon-only icon-del',