From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id BC3FD138A87 for ; Sun, 22 Feb 2015 04:38:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5B34EE0895; Sun, 22 Feb 2015 04:38:31 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0473BE0895 for ; Sun, 22 Feb 2015 04:38:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 806583408B3 for ; Sun, 22 Feb 2015 04:38:29 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 05B7C1248B for ; Sun, 22 Feb 2015 04:38:28 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1424579902.c83b0bd2b30111043ba96b296a76b50abd8dfd9d.robbat2@gentoo> Subject: [gentoo-commits] proj/ag-web:master commit in: views/ X-VCS-Repository: proj/ag-web X-VCS-Files: views/index.erb X-VCS-Directories: views/ X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: c83b0bd2b30111043ba96b296a76b50abd8dfd9d X-VCS-Branch: master Date: Sun, 22 Feb 2015 04:38:28 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: d3e992ec-b82d-4e8e-a7b4-1959f7e41439 X-Archives-Hash: feba999a4e45e0aca7a7bbf9799dd2fc commit: c83b0bd2b30111043ba96b296a76b50abd8dfd9d Author: Robin H. Johnson gentoo org> AuthorDate: Sun Feb 22 04:38:22 2015 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Sun Feb 22 04:38:22 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/ag-web.git;a=commit;h=c83b0bd2 Include a count of mails. Signed-off-by: Robin H. Johnson gentoo.org> --- views/index.erb | 13 ++++++++++--- 1 file 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 @@
- <% $config['frozen_lists'].each do |list| %> - <%= h list %> + <% $config['frozen_lists'].each do |list| + begin + months = get_month_listing(list) + count = months['hits']['total'] + ' mails' + rescue => e + count = 'mail count unavailable' + end + %> + <%= h list %> (<%= count %>) <% end %>
@@ -36,4 +43,4 @@ Archives are provided for future reference.
- \ No newline at end of file +