Skip to content

Commit

Permalink
List all plugins in About Us page
Browse files Browse the repository at this point in the history
  • Loading branch information
MontrealSergiy authored Jan 21, 2025
1 parent 1324ca3 commit 7834539
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions BrainPortal/app/views/portal/about_us.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,14 @@
<br>
<strong>Portal Up Since:</strong> <%= 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? %>
<h3>CBRAIN Plugins Revision Information
Expand Down

0 comments on commit 7834539

Please sign in to comment.