diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-03-20 09:34:26 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-03-20 09:34:26 +0000 |
commit | eaea4e9fee7e70c6df4db5b749fbe94937bbd35c (patch) | |
tree | 2c8fff46458f1aa05d2fe6202d61319bf2024a81 /app/helpers/issues_helper.rb | |
parent | e63bf1d5970cec0e63029dd1deb36539fc844dae (diff) | |
download | redmine-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/helpers/issues_helper.rb')
-rw-r--r-- | app/helpers/issues_helper.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index 68b98e6c2..0d6f69913 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -442,10 +442,11 @@ module IssuesHelper # Link to the attachment if it has not been removed value = link_to_attachment(atta, :download => true, :only_path => options[:only_path]) if options[:only_path] != false && atta.is_text? - value += link_to('', + value += link_to(l(:button_view), { :controller => 'attachments', :action => 'show', :id => atta, :filename => atta.filename }, - :class => 'icon icon-magnifier') + :class => 'icon-only icon-magnifier', + :title => l(:button_view)) end else value = content_tag("i", h(value)) if value |