summaryrefslogtreecommitdiffstats
path: root/app/helpers/journals_helper.rb
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/helpers/journals_helper.rb
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/helpers/journals_helper.rb')
-rw-r--r--app/helpers/journals_helper.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/journals_helper.rb b/app/helpers/journals_helper.rb
index e64037f61..f9dc7c9ea 100644
--- a/app/helpers/journals_helper.rb
+++ b/app/helpers/journals_helper.rb
@@ -30,21 +30,21 @@ module JournalsHelper
editable = User.current.logged? && (User.current.allowed_to?(:edit_issue_notes, issue.project) || (journal.user == User.current && User.current.allowed_to?(:edit_own_issue_notes, issue.project)))
links = []
if !journal.notes.blank?
- links << link_to('',
+ links << link_to(l(:button_quote),
quoted_issue_path(issue, :journal_id => journal),
:remote => true,
:method => 'post',
:title => l(:button_quote),
:class => 'icon-only icon-comment'
) if options[:reply_links]
- links << link_to('',
+ links << link_to(l(:button_edit),
edit_journal_path(journal),
:remote => true,
:method => 'get',
:title => l(:button_edit),
:class => 'icon-only icon-edit'
) if editable
- links << link_to('',
+ links << link_to(l(:button_delete),
journal_path(journal, :notes => ""),
:remote => true,
:method => 'put', :data => {:confirm => l(:text_are_you_sure)},