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

Fix link_translate on deploy_target

Oliver Günther957cb8e30774
diff --git a/config/locales/en.yml b/config/locales/en.yml
index b1326f7f1c5..9a75d38952e 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -1842,6 +1842,7 @@ en:
attachments: "Attachments"
actor: "Actor"
action: "Action"
+ api_key: "API key"
author: "Author"
avatar: "Avatar"
base: "General Error:"
diff --git a/config/static_links.yml b/config/static_links.yml
index 5cbae86fe57..db417d1b9f4 100644
--- a/config/static_links.yml
+++ b/config/static_links.yml
@@ -1,6 +1,9 @@
api_docs:
href: https://www.openproject.org/docs/api/
label: :label_api_doc
+api:
+ authentication_basic_auth:
+ href: https://www.openproject.org/docs/api/introduction/#api-key-through-basic-auth
blog:
href: https://www.openproject.org/blog
label: homescreen.links.blog
diff --git a/modules/github_integration/app/views/deploy_targets/_form.html.erb b/modules/github_integration/app/views/deploy_targets/_form.html.erb
index 4f3538a9546..863c125b11f 100644
--- a/modules/github_integration/app/views/deploy_targets/_form.html.erb
+++ b/modules/github_integration/app/views/deploy_targets/_form.html.erb
@@ -49,7 +49,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= link_translate(
:text_deploy_target_api_key_info,
links: {
- docs_url: "https://www.openproject.org/docs/api/introduction/#api-key-through-basic-auth"
+ docs_url: %i[api authentication_basic_auth]
}
) %>
</span>