]> rtime.felk.cvut.cz Git - notmuch.git/commitdiff
Move the generated date from the top of the page to the footer.
authorCarl Worth <cworth@cworth.org>
Sat, 31 May 2014 22:20:24 +0000 (15:20 -0700)
committerDavid Bremner <david@tethera.net>
Tue, 15 Jul 2014 23:07:18 +0000 (20:07 -0300)
It's useful reference information, but anyone who wants it will look
for and find it.  We don't need this front-and-center.  Follow the
pattern set by our header template with a triple-quoted string.

The gray <hr> styling is less agressive.  IE uses 'color' for drawing
the rule, while Gecko and Opera use the border or 'background-color'
[1].

[1]: https://bugzilla.mozilla.org/show_bug.cgi?id=239386

devel/nmbug/nmbug-status

index e137a90ed07582dd0afe6af66aa984c3bbf7724f..c92d268caf2972eb68779a641eaec9b3c49cb702 100755 (executable)
@@ -315,22 +315,30 @@ _PAGES['html'] = HtmlPage(
     tbody:nth-child(4n+3) tr td {{
       background-color: #bce;
     }}
+    hr {{
+      border: 0;
+      height: 1px;
+      color: #ccc;
+      background-color: #ccc;
+    }}
   </style>
 </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>
+</html>
+'''.format(date=datetime.datetime.utcnow().date())
     )
 
 if args.list_views: