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
feat[Op#50212]: Complete OAuthClient form view
Kabiru Mwenjab5cd7ae02c04
diff --git a/modules/storages/app/components/storages/admin/forms/oauth_client_form_component.html.erb b/modules/storages/app/components/storages/admin/forms/oauth_client_form_component.html.erbindex 664b12915b6..ea23fbcc386 100644--- a/modules/storages/app/components/storages/admin/forms/oauth_client_form_component.html.erb+++ b/modules/storages/app/components/storages/admin/forms/oauth_client_form_component.html.erb@@ -4,6 +4,14 @@url: admin_settings_storage_oauth_client_path(storage)) do |form|flex_layout do |oauth_client_row|+ oauth_client_row.with_row(mb: 3) do+ render(Primer::Beta::Text.new(font_weight: :semibold)) { I18n.t("storages.file_storage_view.#{storage.short_provider_type}_oauth") }+ end++ oauth_client_row.with_row(mb: 3) do+ render(Primer::Beta::Text.new(font_weight: :light)) { storage_provider_credentials_copy_instructions }+ end+oauth_client_row.with_row(mb: 3) dorender(Storages::Admin::OAuthClientForm.new(form, storage:))enddiff --git a/modules/storages/app/components/storages/admin/forms/oauth_client_form_component.rb b/modules/storages/app/components/storages/admin/forms/oauth_client_form_component.rbindex 5f2876e6edb..a7fa4df6bf0 100644--- a/modules/storages/app/components/storages/admin/forms/oauth_client_form_component.rb+++ b/modules/storages/app/components/storages/admin/forms/oauth_client_form_component.rb@@ -39,5 +39,21 @@ module Storages::Admin::Formssuper(oauth_client, **options)@storage = storageend++ private++ def storage_provider_credentials_copy_instructions+ "#{I18n.t('storages.instructions.copy_from')}: #{provider_credentials_instructions_link}".html_safe+ end++ def provider_credentials_instructions_link+ render(+ Primer::Beta::Link.new(+ href: Storages::Peripherals::StorageInteraction::Nextcloud::Util.join_uri_path(storage.host,+ 'settings/admin/openproject'),+ target: '_blank'+ )+ ) { I18n.t("storages.instructions.#{@storage.short_provider_type}.integration") }+ endendend