diff options
author | Tomi Ollila <tomi.ollila@iki.fi> | 2012-10-24 09:59:58 +0300 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2012-10-24 18:53:58 -0300 |
commit | d1e09413502f9affc4fd72b5624967c36606526b (patch) | |
tree | b0078ff19a72d95655129c2e63d0117ad0b5d66f /contrib | |
parent | ffb629cc5d2c2d1505eb5aefcf04fb4d0af6c0c8 (diff) |
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.
Diffstat (limited to 'contrib')
-rwxr-xr-x | 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 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 '<h3>%s</h3>' % title + print '<h3><a name="%s" />%s</h3>' % (title, title) print comment print 'The view is generated from the following query:' print '<blockquote>' @@ -144,6 +144,12 @@ if output_format == 'html': print 'Generated: %s<br />' % datetime.datetime.utcnow().date() print 'For more infomation see <a href="http://notmuchmail.org/nmbug">nmbug</a>' + print '<h3>Views</h3>' + print '<ul>' + for view in config['views']: + print '<li><a href="#%(title)s">%(title)s</a></li>' % view + print '</ul>' + for view in config['views']: print_view(**view) |