diff options
-rw-r--r-- | views/index.erb | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/views/index.erb b/views/index.erb index 4d68cc7..77eda4c 100644 --- a/views/index.erb +++ b/views/index.erb @@ -24,8 +24,15 @@ <div class="row"> <div class="col-xs-12 col-md-6"> <div class="list-group"> - <% $config['frozen_lists'].each do |list| %> - <a href="<%= h list %>/" class="list-group-item"><span class="fa fa-fw fa-archive"></span> <%= h list %></a> + <% $config['frozen_lists'].each do |list| + begin + months = get_month_listing(list) + count = months['hits']['total'] + ' mails' + rescue => e + count = 'mail count unavailable' + end + %> + <a href="<%= h list %>/" class="list-group-item"><span class="fa fa-fw fa-archive"></span> <%= h list %> (<%= count %>)</a> <% end %> </div> </div> @@ -36,4 +43,4 @@ Archives are provided for future reference. </div> </div> -</div>
\ No newline at end of file +</div> |