mirror of
https://github.com/redmine/redmine.git
synced 2025-11-13 00:36:01 +01:00
Moves thumbnail title attribute from a to img (#41272).
Patch by Jens Krämer (user:jkraemer). git-svn-id: https://svn.redmine.org/redmine/trunk@23065 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user