Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id C0D56431FB6 for ; Tue, 23 Oct 2012 23:59:59 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id G7GBRZwJURB1 for ; Tue, 23 Oct 2012 23:59:58 -0700 (PDT) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) by olra.theworths.org (Postfix) with ESMTP id B634A431FAE for ; Tue, 23 Oct 2012 23:59:58 -0700 (PDT) Received: by guru.guru-group.fi (Postfix, from userid 501) id CECAC100372; Wed, 24 Oct 2012 10:00:00 +0300 (EEST) From: Tomi Ollila To: notmuch@notmuchmail.org Subject: [PATCH 1/2] contrib/nmbug/nmbug-status: added table of views Date: Wed, 24 Oct 2012 09:59:58 +0300 Message-Id: <1351061999-25473-1-git-send-email-tomi.ollila@iki.fi> X-Mailer: git-send-email 1.7.1 Cc: tomi.ollila@iki.fi X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Oct 2012 06:59:59 -0000 In latest configuration quite a few long views were added to the Notmuch Patches page. To ease navigating to the views a 'Views' section was added to the beginning of page containing hyperlink to every view. --- contrib/nmbug/nmbug-status | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/contrib/nmbug/nmbug-status b/contrib/nmbug/nmbug-status index 9a334cc..c663409 100755 --- a/contrib/nmbug/nmbug-status +++ b/contrib/nmbug/nmbug-status @@ -67,7 +67,7 @@ def print_view(title, query, comment): last['thread_id'] = '' if output_format == 'html': - print '

%s

' % title + print '

%s

' % (title, title) print comment print 'The view is generated from the following query:' print '
' @@ -144,6 +144,12 @@ if output_format == 'html': print 'Generated: %s
' % datetime.datetime.utcnow().date() print 'For more infomation see
nmbug' + print '

Views

' + print '
    ' + for view in config['views']: + print '
  • %(title)s
  • ' % view + print '
' + for view in config['views']: print_view(**view) -- 1.7.1