summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/helpers/application_helper.rb4
-rw-r--r--test/helpers/application_helper_test.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 7e13c995c..b11619088 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -351,12 +351,12 @@ module ApplicationHelper
thumbnail_path,
:srcset => "#{thumbnail_path} 2x",
:style => "max-width: #{thumbnail_size}px; max-height: #{thumbnail_size}px;",
+ :title => attachment.filename,
:loading => "lazy"
),
attachment_path(
attachment
- ),
- :title => attachment.filename
+ )
)
end
diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb
index 76b39545c..bad102c20 100644
--- a/test/helpers/application_helper_test.rb
+++ b/test/helpers/application_helper_test.rb
@@ -1932,7 +1932,7 @@ class ApplicationHelperTest < Redmine::HelperTest
a = Attachment.find(3)
assert_select_in(
thumbnail_tag(a),
- 'a[href=?][title=?] img[src=?][loading="lazy"]',
+ 'a[href=?] img[title=?][src=?][loading="lazy"]',
"/attachments/3", "logo.gif", "/attachments/thumbnail/3/200")
end