From 78345397f13a351767ff3ae143e221523bfdc185 Mon Sep 17 00:00:00 2001 From: Serge Date: Tue, 21 Jan 2025 16:17:22 -0500 Subject: [PATCH] List all plugins in About Us page --- BrainPortal/app/views/portal/about_us.html.erb | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/BrainPortal/app/views/portal/about_us.html.erb b/BrainPortal/app/views/portal/about_us.html.erb index 72d4732b1..9f1a9b96a 100644 --- a/BrainPortal/app/views/portal/about_us.html.erb +++ b/BrainPortal/app/views/portal/about_us.html.erb @@ -37,9 +37,14 @@
Portal Up Since: <%= to_localtime(CBRAIN::Startup_LocalTime,:datetime) %> (for: <%= pretty_elapsed((Time.now.localtime - CBRAIN::Startup_LocalTime).to_i) %>) - <% plugins_basenames = Dir.glob(Pathname.new(CBRAIN::Plugins_Dir) + "cbrain-plugins-*") - .map { |x| Pathname.new(x).basename.to_s } - .reject { |x| x =~ /^cbrain-plugins-base$/ } %> + <% plugins_basenames = Pathname(CBRAIN::Plugins_Dir) + .children + .select(&:directory?) + .map(&:basename) + .map(&:to_s) + .reject { |x| x =~ /test|^cbrain-plugins-base$|^installed-plugins$/ } + .sort + %> <% if plugins_basenames.present? %>

CBRAIN Plugins Revision Information