diff options
author | Jani Nikula <jani@nikula.org> | 2014-03-13 13:04:04 +0100 |
---|---|---|
committer | David Bremner <david@tethera.net> | 2014-03-23 08:32:40 -0300 |
commit | 81a1aae2dc3b48c4e0dcc524455f32ca91087033 (patch) | |
tree | 823cb5e386b2fd96633b3ced2c861a8c44c88027 /devel | |
parent | 14d3251b9c08c947b16af58097a072a187109658 (diff) |
nmbug-status: parameterize title and blurb in the page header
Prepare for more general use.
Diffstat (limited to 'devel')
-rwxr-xr-x | devel/nmbug/nmbug-status | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/devel/nmbug/nmbug-status b/devel/nmbug/nmbug-status index 6b2572c1..cb3901f7 100755 --- a/devel/nmbug/nmbug-status +++ b/devel/nmbug/nmbug-status @@ -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'), |