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/views/my/blocks/_timelog.html.erb | |
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/views/my/blocks/_timelog.html.erb')
-rw-r--r-- | app/views/my/blocks/_timelog.html.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/my/blocks/_timelog.html.erb b/app/views/my/blocks/_timelog.html.erb index 76b974e52..7fcac4aa4 100644 --- a/app/views/my/blocks/_timelog.html.erb +++ b/app/views/my/blocks/_timelog.html.erb @@ -42,10 +42,10 @@ entries_by_day = entries.group_by(&:spent_on) <td class="hours"><%= html_hours("%.2f" % entry.hours) %></td> <td class="buttons"> <% if entry.editable_by?(@user) -%> - <%= link_to '', {:controller => 'timelog', :action => 'edit', :id => entry}, + <%= link_to l(:button_edit), {:controller => 'timelog', :action => 'edit', :id => entry}, :title => l(:button_edit), :class => 'icon-only icon-edit' %> - <%= link_to '', {:controller => 'timelog', :action => 'destroy', :id => entry}, + <%= link_to l(:button_delete), {:controller => 'timelog', :action => 'destroy', :id => entry}, :data => {:confirm => l(:text_are_you_sure)}, :method => :delete, :title => l(:button_delete), :class => 'icon-only icon-del' %> |