From: Tomi Ollila Date: Wed, 24 Oct 2012 06:59:58 +0000 (+0300) Subject: contrib/nmbug/nmbug-status: added table of views X-Git-Tag: 0.15_rc1~212 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=d1e09413502f9affc4fd72b5624967c36606526b;hp=ffb629cc5d2c2d1505eb5aefcf04fb4d0af6c0c8 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. --- 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)