From d1e09413502f9affc4fd72b5624967c36606526b Mon Sep 17 00:00:00 2001 From: Tomi Ollila Date: Wed, 24 Oct 2012 09:59:58 +0300 Subject: [PATCH] contrib/nmbug/nmbug-status: added table of views 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 file changed, 7 insertions(+), 1 deletion(-) diff --git a/contrib/nmbug/nmbug-status b/contrib/nmbug/nmbug-status index 9a334ccc..c6634096 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_view(**view) -- 2.26.2