public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Robin H. Johnson" <robbat2@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/ag-web:master commit in: views/
Date: Sun, 22 Feb 2015 04:38:28 +0000 (UTC)	[thread overview]
Message-ID: <1424579902.c83b0bd2b30111043ba96b296a76b50abd8dfd9d.robbat2@gentoo> (raw)

commit:     c83b0bd2b30111043ba96b296a76b50abd8dfd9d
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 22 04:38:22 2015 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> 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 <robbat2 <AT> 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 @@
 <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>


             reply	other threads:[~2015-02-22  4:38 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-22  4:38 Robin H. Johnson [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-02-26 13:12 [gentoo-commits] proj/ag-web:master commit in: views/ Alex Legler
2015-02-25 21:44 Alex Legler
2015-02-25 21:44 Alex Legler
2015-02-25 10:47 Alex Legler
2015-02-23 23:55 Alex Legler
2015-02-22 11:05 Alex Legler
2015-02-22 11:02 Alex Legler
2015-02-22  0:15 Alex Legler
2015-02-22  0:14 Alex Legler
2015-02-22  0:04 Alex Legler
2015-02-22  0:03 Alex Legler
2015-02-22  0:01 Alex Legler
2015-02-22  0:00 Alex Legler
2015-02-21 23:57 Alex Legler
2015-02-21 23:49 Robin H. Johnson
2015-02-21 23:41 Robin H. Johnson
2015-02-21 23:39 Robin H. Johnson
2015-02-21 23:34 Robin H. Johnson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1424579902.c83b0bd2b30111043ba96b296a76b50abd8dfd9d.robbat2@gentoo \
    --to=robbat2@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox