Skip to content

Commit

Permalink
Add unique packages count to ecosystems show page
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Jan 28, 2024
1 parent c9e5d74 commit 36a37bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/ecosystems/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<%= params[:id]%> registries
</h1>

<h4 class='mb-3'>Total packages indexed: <%= number_with_delimiter @registries.sum(&:packages_count) %></h4>
<h4 class='mb-3'>Total packages indexed: <%= number_with_delimiter @registries.sum(&:packages_count) %> - Unique packages index: <%= number_with_delimiter Package.ecosystem(params[:id]).distinct.count(:name) %></h4>

<%= render @registries %>
</div>

0 comments on commit 36a37bf

Please sign in to comment.