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

[#43851] Add information toast to the Nextcloud Setup Documentation

Andreas Pfohlc14bb60bdf65
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 604cb0318bc..10b08e1b6cf 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -2471,6 +2471,8 @@ en:
update_timeout: "Keep the last required disk space information for a repository for N minutes.\nAs counting the required disk space of a repository may be costly, increase this value to reduce performance impact."
oauth_application_details: "The client secret value will not be accessible again after you close this window. Please copy these values into the Nextcloud OpenProject Integration settings:"
oauth_application_details_link_text: "Go to settings page"
+ setup_documentation_details: "If you need help configuring a new file storage please check the documentation: "
+ setup_documentation_details_link_text: "File Storages setup"
show_warning_details: "To use this file storage remember to activate the module and the specific storage in the project settings of each desired project."
subversion:
existing_title: "Existing Subversion repository"
diff --git a/lib/open_project/static/links.rb b/lib/open_project/static/links.rb
index d2d9cc99d0b..6bc01cd0f23 100644
--- a/lib/open_project/static/links.rb
+++ b/lib/open_project/static/links.rb
@@ -247,6 +247,11 @@ module OpenProject
status_read_only: {
href: 'https://www.openproject.org/docs/system-admin-guide/manage-work-packages/work-package-status/#create-a-new-work-package-status'
}
+ },
+ storage_docs: {
+ setup: {
+ href: 'https://www.openproject.org/docs/system-admin-guide/integrations/nextcloud/'
+ }
}
}
end
diff --git a/modules/storages/app/views/storages/admin/storages/index.html.erb b/modules/storages/app/views/storages/admin/storages/index.html.erb
index 7407e26ad86..dd31c803d24 100644
--- a/modules/storages/app/views/storages/admin/storages/index.html.erb
+++ b/modules/storages/app/views/storages/admin/storages/index.html.erb
@@ -13,4 +13,19 @@
</li>
<% end %>
+<div class="op-toast -info -with-bottom-spacing">
+ <div class="op-toast--content">
+ <p>
+ <%= t('repositories.storage.setup_documentation_details') %>
+ <a
+ href="<%= ::OpenProject::Static::Links[:storage_docs][:setup][:href] %>"
+ target="_blank"
+ class="spot-link"
+ >
+ <%= t('repositories.storage.setup_documentation_details_link_text') %>
+ </a>
+ </p>
+ </div>
+</div>
+
<%= rails_cell ::Storages::StoragesTableCell, @storages %>