Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[#59925] hover card in news block

Tobias Dillmannf76668dde34b
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 50e94f05785..47eee76860e 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -192,10 +192,7 @@ module ApplicationHelper
def authoring_at(created, author)
return if author.nil?
- I18n.t(:"js.label_added_time_by",
- author: html_escape(author.name),
- age: created,
- authorLink: user_path(author)).html_safe
+ I18n.t(:"js.label_added_time_by", authorLink: link_to_user(author), age: created).html_safe
end
def time_tag(time)
diff --git a/config/locales/js-en.yml b/config/locales/js-en.yml
index fd80166a766..c6cf1289a60 100644
--- a/config/locales/js-en.yml
+++ b/config/locales/js-en.yml
@@ -436,7 +436,7 @@ en:
label_add_row_before: "Add row before"
label_add_selected_columns: "Add selected columns"
label_added_by: "added by"
- label_added_time_by: 'Added by <a href="%{authorLink}">%{author}</a> at %{age}'
+ label_added_time_by: 'Added by %{authorLink} at %{age}'
label_ago: "days ago"
label_all: "all"
label_all_uppercase: "All"