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
Hide bundled plugins
Oliver Günther23d49f9d3805
diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rbindex 91dd292afc9..d670f34df98 100644--- a/app/controllers/admin_controller.rb+++ b/app/controllers/admin_controller.rb@@ -57,7 +57,7 @@ class AdminController < ApplicationControllerenddef plugins- @plugins = Redmine::Plugin.all.sort+ @plugins = Redmine::Plugin.not_bundled.sortenddef test_emaildiff --git a/app/views/admin/plugins.html.erb b/app/views/admin/plugins.html.erbindex 2343204c7d4..5ad7fe0851f 100644--- a/app/views/admin/plugins.html.erb+++ b/app/views/admin/plugins.html.erb@@ -27,7 +27,7 @@ See COPYRIGHT and LICENSE files for more details.++#%><% html_title t(:label_administration), t(:label_plugins) %>-<%= toolbar title: t(:label_modules_and_plugins) %>+<%= toolbar title: t(:label_plugins) %><% if @plugins.any? %><div class="generic-table--container"><div class="generic-table--results-container">@@ -88,5 +88,6 @@ See COPYRIGHT and LICENSE files for more details.</div></div><% else %>- <%= no_results_box %>+ <%= no_results_box display_action: true,+ action_url: OpenProject::Static::Links.url_for(:integrations) %><% end %>diff --git a/config/locales/en.yml b/config/locales/en.ymlindex b11d56224dc..a5c6f704c59 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -35,7 +35,8 @@ en:admin:plugins:- no_results_title_text: There are currently no plugins available.+ no_results_title_text: There are currently no plugins installed.+ no_results_content_text: See our integrations and plugins page for more information.custom_styles:color_theme: "Color theme"color_theme_custom: "(Custom)"diff --git a/lib/open_project/static/links.rb b/lib/open_project/static/links.rbindex 60101679213..a1f7fb3b9f4 100644--- a/lib/open_project/static/links.rb+++ b/lib/open_project/static/links.rb@@ -44,6 +44,10 @@ module OpenProject@links ||= static_links.merge(dynamic_links)end+ def url_for(item)+ links.dig(item, :href)+ end+def has?(name)@links.key? nameend@@ -277,6 +281,9 @@ module OpenProject},ical_docs: {href: 'https://www.openproject.org/docs/user-guide/calendar/#subscribe-to-a-calendar'+ },+ integrations: {+ href: 'https://www.openproject.org/docs/system-admin-guide/integrations/'}}enddiff --git a/lib/redmine/plugin.rb b/lib/redmine/plugin.rbindex 4769847a8b6..af0cac68c5a 100644--- a/lib/redmine/plugin.rb+++ b/lib/redmine/plugin.rb@@ -96,6 +96,7 @@ module Redmine # :nodoc:endenddef_field :gem_name, :url, :author, :author_url, :version, :settings, :bundled+ alias :bundled? :bundledattr_reader :id# Plugin constructor@@ -165,6 +166,12 @@ module Redmine # :nodoc:registered_plugins.valuesend+ def self.not_bundled+ registered_plugins+ .values+ .reject(&:bundled)+ end+# Finds a plugin by its id# Returns a PluginNotFound exception if the plugin doesn't existdef self.find(id)diff --git a/modules/bim/lib/open_project/bim/engine.rb b/modules/bim/lib/open_project/bim/engine.rbindex accd3e845ab..ea2a6356908 100644--- a/modules/bim/lib/open_project/bim/engine.rb+++ b/modules/bim/lib/open_project/bim/engine.rb@@ -36,6 +36,7 @@ module OpenProject::Bimregister 'openproject-bim',author_url: 'https://www.openproject.org',+ bundled: true,settings: {default: {}} do