]> git.cworth.org Git - obsolete/notmuch-to-html/blobdiff - notmuch-to-html
Move the generated date from the top of the page to the footer.
[obsolete/notmuch-to-html] / notmuch-to-html
index 6b42affa8cb9d5ab9f8c1aa680da346808bdd1fd..edf5c974294d5fe80bfdd604e5fb0a5fb77fd73a 100755 (executable)
@@ -188,11 +188,11 @@ class HtmlPage (Page):
             stream.write(view['comment'])
             stream.write('\n')
         for line in [
-                'The view is generated from the following query:',
+                '<p>This view is generated from the following query:',
                 '</p>',
                 '<p>',
                 '  <code>',
-                view['query-string'],
+                'notmuch search ' + view['query-string'],
                 '  </code>',
                 '</p>',
                 ]:
@@ -295,18 +295,15 @@ _PAGES['html'] = HtmlPage(
 </head>
 <body>
 <h2>{title}</h2>
-<p>
-Generated: {date}<br />
 {blurb}
 </p>
 <h3>Views</h3>
-'''.format(date=datetime.datetime.utcnow().date(),
-           title=config['meta']['title'],
+'''.format(title=config['meta']['title'],
            blurb=config['meta']['blurb'],
            encoding=_ENCODING,
            inter_message_padding='0.25em',
            border_radius='0.5em'),
-    footer='</body>\n</html>\n',
+    footer='<hr><p>Generated: {date}</body>\n</html>\n'.format(date=datetime.datetime.utcnow().date())
     )
 
 if args.list_views: