]> git.cworth.org Git - obsolete/notmuch-to-html/commitdiff
Move the generated date from the top of the page to the footer.
authorCarl Worth <cworth@cworth.org>
Tue, 22 Apr 2014 20:07:08 +0000 (13:07 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 22 Apr 2014 20:07:08 +0000 (13:07 -0700)
It's useful reference information, but anyone who wants it will look
for and find it. We don't need this front-and-center.

notmuch-to-html

index 663dd8733e0129163ff745b9aef1ac42d57f12cf..edf5c974294d5fe80bfdd604e5fb0a5fb77fd73a 100755 (executable)
@@ -295,18 +295,15 @@ _PAGES['html'] = HtmlPage(
 </head>
 <body>
 <h2>{title}</h2>
 </head>
 <body>
 <h2>{title}</h2>
-<p>
-Generated: {date}<br />
 {blurb}
 </p>
 <h3>Views</h3>
 {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'),
            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:
     )
 
 if args.list_views: