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

[#55581] link to edit profile, localize button string

Tobias Dillmannb9d4fa5f83da
diff --git a/app/components/users/hover_card_component.html.erb b/app/components/users/hover_card_component.html.erb
index e36208739ff..d2bb4d03d71 100644
--- a/app/components/users/hover_card_component.html.erb
+++ b/app/components/users/hover_card_component.html.erb
@@ -61,9 +61,8 @@ See COPYRIGHT and LICENSE files for more details.
end
flex.with_row do
- # TODO: could also use helpers.allowed_management_user_profile_path here...
- render(Primer::Beta::Button.new(tag: :a, href: user_path(@user))) do
- "Open profile"
+ render(Primer::Beta::Button.new(tag: :a, href: helpers.allowed_management_user_profile_path(@user))) do
+ I18n.t("users.open_profile")
end
end
end
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 26e5d7bbef5..3f0d35b3e96 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -544,6 +544,7 @@ en:
summary: Member of %{names}.
memberships:
no_results_title_text: This user is currently not a member of a project.
+ open_profile: "Open profile"
page:
text: "Text"
placeholder_users: