1 Return-Path: <too@guru-group.fi>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id C0D56431FB6
\r
6 for <notmuch@notmuchmail.org>; Tue, 23 Oct 2012 23:59:59 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id G7GBRZwJURB1 for <notmuch@notmuchmail.org>;
\r
16 Tue, 23 Oct 2012 23:59:58 -0700 (PDT)
\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])
\r
18 by olra.theworths.org (Postfix) with ESMTP id B634A431FAE
\r
19 for <notmuch@notmuchmail.org>; Tue, 23 Oct 2012 23:59:58 -0700 (PDT)
\r
20 Received: by guru.guru-group.fi (Postfix, from userid 501)
\r
21 id CECAC100372; Wed, 24 Oct 2012 10:00:00 +0300 (EEST)
\r
22 From: Tomi Ollila <tomi.ollila@iki.fi>
\r
23 To: notmuch@notmuchmail.org
\r
24 Subject: [PATCH 1/2] contrib/nmbug/nmbug-status: added table of views
\r
25 Date: Wed, 24 Oct 2012 09:59:58 +0300
\r
26 Message-Id: <1351061999-25473-1-git-send-email-tomi.ollila@iki.fi>
\r
27 X-Mailer: git-send-email 1.7.1
\r
28 Cc: tomi.ollila@iki.fi
\r
29 X-BeenThere: notmuch@notmuchmail.org
\r
30 X-Mailman-Version: 2.1.13
\r
32 List-Id: "Use and development of the notmuch mail system."
\r
33 <notmuch.notmuchmail.org>
\r
34 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
35 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
36 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
37 List-Post: <mailto:notmuch@notmuchmail.org>
\r
38 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
39 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
40 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
41 X-List-Received-Date: Wed, 24 Oct 2012 06:59:59 -0000
\r
43 In latest configuration quite a few long views were added to the
\r
44 Notmuch Patches page. To ease navigating to the views a 'Views'
\r
45 section was added to the beginning of page containing hyperlink
\r
48 contrib/nmbug/nmbug-status | 8 +++++++-
\r
49 1 files changed, 7 insertions(+), 1 deletions(-)
\r
51 diff --git a/contrib/nmbug/nmbug-status b/contrib/nmbug/nmbug-status
\r
52 index 9a334cc..c663409 100755
\r
53 --- a/contrib/nmbug/nmbug-status
\r
54 +++ b/contrib/nmbug/nmbug-status
\r
55 @@ -67,7 +67,7 @@ def print_view(title, query, comment):
\r
56 last['thread_id'] = ''
\r
58 if output_format == 'html':
\r
59 - print '<h3>%s</h3>' % title
\r
60 + print '<h3><a name="%s" />%s</h3>' % (title, title)
\r
62 print 'The view is generated from the following query:'
\r
63 print '<blockquote>'
\r
64 @@ -144,6 +144,12 @@ if output_format == 'html':
\r
65 print 'Generated: %s<br />' % datetime.datetime.utcnow().date()
\r
66 print 'For more infomation see <a href="http://notmuchmail.org/nmbug">nmbug</a>'
\r
68 + print '<h3>Views</h3>'
\r
70 + for view in config['views']:
\r
71 + print '<li><a href="#%(title)s">%(title)s</a></li>' % view
\r
74 for view in config['views']:
\r