mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 04:18:08 +01:00
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.
This commit is contained in:
parent
ffb629cc5d
commit
d1e0941350
1 changed files with 7 additions and 1 deletions
|
@ -67,7 +67,7 @@ def print_view(title, query, comment):
|
||||||
last['thread_id'] = ''
|
last['thread_id'] = ''
|
||||||
|
|
||||||
if output_format == 'html':
|
if output_format == 'html':
|
||||||
print '<h3>%s</h3>' % title
|
print '<h3><a name="%s" />%s</h3>' % (title, title)
|
||||||
print comment
|
print comment
|
||||||
print 'The view is generated from the following query:'
|
print 'The view is generated from the following query:'
|
||||||
print '<blockquote>'
|
print '<blockquote>'
|
||||||
|
@ -144,6 +144,12 @@ if output_format == 'html':
|
||||||
print 'Generated: %s<br />' % datetime.datetime.utcnow().date()
|
print 'Generated: %s<br />' % datetime.datetime.utcnow().date()
|
||||||
print 'For more infomation see <a href="http://notmuchmail.org/nmbug">nmbug</a>'
|
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']:
|
for view in config['views']:
|
||||||
print_view(**view)
|
print_view(**view)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue