mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Improve method of presenting link clicks (#29453)
Currently the tracking for clicked links are injected into the HTML in a span tag. This leads to the link counter value being highlighted when copying and pasting. Additionally, any means for using CSS to hide link counters result in a gap due to it occupying a specific width. With this change, we make link counters appear in a data attribute on the link element and visually shown with CSS `::after` element.
This commit is contained in:
@@ -3766,6 +3766,9 @@ en:
|
||||
one: "view %{count} hidden reply"
|
||||
other: "view %{count} hidden replies"
|
||||
sr_reply_to: "Reply to post #%{post_number} by @%{username}"
|
||||
link_clicked:
|
||||
one: "link clicked %{count} time"
|
||||
other: "link clicked %{count} times"
|
||||
|
||||
notice:
|
||||
new_user: "This is the first time %{user} has posted — let’s welcome them to our community!"
|
||||
|
||||
Reference in New Issue
Block a user