diff options
author | Go MAEDA <maeda@farend.jp> | 2025-01-22 02:55:33 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2025-01-22 02:55:33 +0000 |
commit | 937a5e321f299b5ca0e8812cfddc9196319a030d (patch) | |
tree | d0e82590919588e9f3db45d8c21322ff0a2144ab | |
parent | 0a7512546138c3a2a7e76ec876466aa7c82f6ac0 (diff) | |
download | redmine-937a5e321f299b5ca0e8812cfddc9196319a030d.tar.gz redmine-937a5e321f299b5ca0e8812cfddc9196319a030d.zip |
Merged r23452 from trunk to 6.0-stable (#42084).
git-svn-id: https://svn.redmine.org/redmine/branches/6.0-stable@23459 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/helpers/application_helper.rb | 1 | ||||
-rw-r--r-- | test/helpers/application_helper_test.rb | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 2db6ce7ee..7e8c764dd 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -352,6 +352,7 @@ module ApplicationHelper :srcset => "#{thumbnail_path} 2x", :style => "max-width: #{thumbnail_size}px; max-height: #{thumbnail_size}px;", :title => attachment.filename, + :alt => attachment.filename, :loading => "lazy" ), attachment_path( diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb index 036ef774e..67fbc745d 100644 --- a/test/helpers/application_helper_test.rb +++ b/test/helpers/application_helper_test.rb @@ -1921,8 +1921,8 @@ class ApplicationHelperTest < Redmine::HelperTest a = Attachment.find(3) assert_select_in( thumbnail_tag(a), - 'a[href=?] img[title=?][src=?][loading="lazy"]', - "/attachments/3", "logo.gif", "/attachments/thumbnail/3/200") + 'a[href=?] img[title=?][alt=?][src=?][loading="lazy"]', + "/attachments/3", "logo.gif", "logo.gif", "/attachments/thumbnail/3/200") end def test_link_to_project |