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

docs[Op#51022]: Render setup documentation by provider type

Kabiru Mwenja42b23b2875cc
diff --git a/lib/open_project/static/links.rb b/lib/open_project/static/links.rb
index 126c12fe79c..da3d8a904ed 100644
--- a/lib/open_project/static/links.rb
+++ b/lib/open_project/static/links.rb
@@ -257,8 +257,14 @@ module OpenProject
},
storage_docs: {
setup: {
+ href: 'https://www.openproject.org/docs/system-admin-guide/integrations/storage/'
+ },
+ nextcloud_setup: {
href: 'https://www.openproject.org/docs/system-admin-guide/integrations/nextcloud/'
},
+ one_drive_setup: {
+ href: 'https://www.openproject.org/docs/system-admin-guide/integrations/one-drive/'
+ },
nextcloud_oauth_application: {
href: 'https://apps.nextcloud.com/apps/integration_openproject'
},
diff --git a/modules/storages/app/views/storages/admin/storages/new.html.erb b/modules/storages/app/views/storages/admin/storages/new.html.erb
index e75bc530eed..0ec295bc478 100644
--- a/modules/storages/app/views/storages/admin/storages/new.html.erb
+++ b/modules/storages/app/views/storages/admin/storages/new.html.erb
@@ -21,9 +21,9 @@
<% header.with_description do %>
<%=
t("storages.instructions.new_storage",
- new_storage_link_text: render(
- Primer::Beta::Link.new(href: ::OpenProject::Static::Links[:storage_docs][:setup][:href], target: '_blank')
- ) { t("storages.instructions.new_storage_link_text") }
+ file_storage_docs_link: render(
+ Primer::Beta::Link.new(href: ::OpenProject::Static::Links[:storage_docs][:"#{@storage.short_provider_type}_setup"][:href], target: '_blank')
+ ) { t("storages.instructions.file_storage_docs_link", provider_name: I18n.t("storages.provider_types.#{@storage.short_provider_type}.name")) }
).html_safe
%>
<% end %>
diff --git a/modules/storages/config/locales/en.yml b/modules/storages/config/locales/en.yml
index 4f88f2d97e2..171979bb534 100644
--- a/modules/storages/config/locales/en.yml
+++ b/modules/storages/config/locales/en.yml
@@ -118,8 +118,8 @@ en:
managed_project_folders_application_password: >
Copy this value from:
managed_project_folders_application_password_caption: "Enable automatic managed folders by copying this value from: %{provider_type_link}."
- new_storage: "Read our %{new_storage_link_text} for more information about this setup."
- new_storage_link_text: "file storage documentation"
+ new_storage: "Read our documentation on %{file_storage_docs_link} integration for more information."
+ file_storage_docs_link: "setting up a %{provider_name} file storage"
no_storage_set_up: "There are no file storages set up yet."
no_specific_folder: "By default, each user will start at their own home folder when they upload a file."
automatic_folder: "This will automatically create a root folder for this project and manage the access permissions for each project member."