mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 05:47:45 +08:00
UX: replace broken link SVG with new Font Awesome 6 name (#29623)
This commit is contained in:
parent
ac33ecdc8c
commit
f24c274867
|
@ -260,7 +260,7 @@ module CookedProcessorMixin
|
|||
img.name = "span"
|
||||
img.set_attribute("class", "broken-image")
|
||||
img.set_attribute("title", I18n.t("post.image_placeholder.broken"))
|
||||
img << "<svg class=\"fa d-icon d-icon-unlink svg-icon\" aria-hidden=\"true\"><use href=\"#unlink\"></use></svg>"
|
||||
img << "<svg class=\"fa d-icon d-icon-link-slash svg-icon\" aria-hidden=\"true\"><use href=\"#link-slash\"></use></svg>"
|
||||
img.remove_attribute("src")
|
||||
img.remove_attribute("width")
|
||||
img.remove_attribute("height")
|
||||
|
|
Loading…
Reference in New Issue
Block a user