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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[#55581] link the end of the sentence to users#show
Tobias Dillmann869636ea6077
diff --git a/app/components/users/hover_card_component.rb b/app/components/users/hover_card_component.rbindex 9c6753d03fe..59ae981b564 100644--- a/app/components/users/hover_card_component.rb+++ b/app/components/users/hover_card_component.rb@@ -84,9 +84,10 @@ class Users::HoverCardComponent < ApplicationComponentdef build_summary(links, cutoff_index)summary_links = safe_join(links[0...cutoff_index], ", ")remaining_count = links.size - cutoff_index+ remaining_count_link = link_to(t("users.groups.more", count: remaining_count), user_path(@user))if remaining_count > 0- t("users.groups.summary_with_more", names: summary_links, count: remaining_count).html_safe+ t("users.groups.summary_with_more", names: summary_links, count_link: remaining_count_link).html_safeelset("users.groups.summary", names: summary_links).html_safeenddiff --git a/config/locales/en.yml b/config/locales/en.ymlindex 23ebbb86740..f6e8bba936a 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -539,7 +539,8 @@ en:groups:member_in_these_groups: "This user is currently a member of the following groups:"no_results_title_text: This user is currently not a member in any group.- summary_with_more: Member of %{names} and %{count} more.+ summary_with_more: Member of %{names} and %{count_link}.+ more: "%{count} more"summary: Member of %{names}.memberships:no_results_title_text: This user is currently not a member of a project.