]> git.notmuchmail.org Git - notmuch/commitdiff
nmbug-status: parameterize title and blurb in the page header
authorJani Nikula <jani@nikula.org>
Thu, 13 Mar 2014 12:04:04 +0000 (13:04 +0100)
committerDavid Bremner <david@tethera.net>
Sun, 23 Mar 2014 11:32:40 +0000 (08:32 -0300)
Prepare for more general use.

devel/nmbug/nmbug-status

index 6b2572c18ccbdb71cd40003b90e753e7e20e8313..cb3901f75fa8926ea6fb10cef5627460243a134d 100755 (executable)
@@ -249,7 +249,7 @@ _PAGES['html'] = HtmlPage(
 <html lang="en">
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset={encoding}" />
-  <title>Notmuch Patches</title>
+  <title>{title}</title>
   <style media="screen" type="text/css">
     table {{
       border-spacing: 0;
@@ -285,13 +285,15 @@ _PAGES['html'] = HtmlPage(
   </style>
 </head>
 <body>
-<h2>Notmuch Patches</h2>
+<h2>{title}</h2>
 <p>
 Generated: {date}<br />
-For more infomation see <a href="http://notmuchmail.org/nmbug">nmbug</a>
+{blurb}
 </p>
 <h3>Views</h3>
 '''.format(date=datetime.datetime.utcnow().date(),
+           title='Notmuch Patches',
+           blurb='For more infomation see <a href="http://notmuchmail.org/nmbug">nmbug</a>',
            encoding=_ENCODING,
            inter_message_padding='0.25em',
            border_radius='0.5em'),