Show total number of downloads

This commit is contained in:
Steve Purcell 2013-06-12 12:32:46 +01:00
parent d1b0fbe119
commit 7643b23eb6

View file

@ -123,7 +123,9 @@
</div>
<section>
<a name="packages"></a>
<h2>Current List of <%=h packages.size %> Packages</h2>
<h2>Current List of <%=h packages.size %> Packages
<small>(<%= packages.map(&:downloads).compact.inject(0) { |a,b| a+b } %> downloads to date)</small>
</h2>
<table id="package-list" class="table table-bordered table-hover">
<thead>
<tr class="header">