From 1a97a08fce7c3eac38dc16ac716d835fd6b378e9 Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Thu, 13 Mar 2014 13:04:04 +0100 Subject: [PATCH] [PATCH 1/2] nmbug-status: parametrize title and blurb in the page header --- 53/a517475ee3520e36bb93124d8fc3f5c0fa2a3a | 109 ++++++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 53/a517475ee3520e36bb93124d8fc3f5c0fa2a3a diff --git a/53/a517475ee3520e36bb93124d8fc3f5c0fa2a3a b/53/a517475ee3520e36bb93124d8fc3f5c0fa2a3a new file mode 100644 index 000000000..51fb6d163 --- /dev/null +++ b/53/a517475ee3520e36bb93124d8fc3f5c0fa2a3a @@ -0,0 +1,109 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 46DAA431E64 + for ; Thu, 13 Mar 2014 05:04:21 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" +X-Spam-Flag: NO +X-Spam-Score: -0.7 +X-Spam-Level: +X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id 7sqQcBBuxoro for ; + Thu, 13 Mar 2014 05:04:15 -0700 (PDT) +Received: from mail-wg0-f41.google.com (mail-wg0-f41.google.com + [74.125.82.41]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client + certificate requested) by olra.theworths.org (Postfix) with ESMTPS id + D76EB431FAF for ; Thu, 13 Mar 2014 05:04:14 -0700 + (PDT) +Received: by mail-wg0-f41.google.com with SMTP id n12so774398wgh.24 + for ; Thu, 13 Mar 2014 05:04:12 -0700 (PDT) +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20130820; + h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to + :references:in-reply-to:references; + bh=gItwSepmHFAuRyK5dIFLakFxDe58RVOm0vtR/2BMcNA=; + b=X3/nCxLpGszVYfTcfxR50p603eldCju8jslcxb+lzVPjnHqRIWkAC0bK6ukER9gOdF + K+5J/cigd6R9WjFdPKmJsIFhfsw19fzo2I3D0OAR0ejDlmFQ2nnC53yrnJORKwXCrevB + JusoPmqSTPFzorpgGTLdR2nfW4Fg0olcelT/lujtt0vjXjZlZ+RTZTKpXciaxpiQ7Hya + hxU/fCF8smyawVo2wHiCK+HBSj5zQyOHSp8ZncqL4ScUdU2lQUwzZ8t8z7HD6UPm28rZ + 0GWzw+hxUjLHYxRy5WXUOzXj0HN6T30YaMT7BBiSEnibIyHPgcghzWZ04lZxF0cXvBzd + oEeQ== +X-Gm-Message-State: + ALoCoQlb1XXFHOa5Hbz4NEOXD3kVRY2hxNmENasC0Dqe9v1ewhdsjOp0YXH0+E9ShlBAgdeNyqu2 +X-Received: by 10.180.165.174 with SMTP id yz14mr1329930wib.34.1394712252291; + Thu, 13 Mar 2014 05:04:12 -0700 (PDT) +Received: from localhost ([2001:4b98:dc0:43:216:3eff:fe1b:25f3]) + by mx.google.com with ESMTPSA id q15sm5111430wjw.18.2014.03.13.05.04.11 + for + (version=TLSv1.1 cipher=RC4-SHA bits=128/128); + Thu, 13 Mar 2014 05:04:11 -0700 (PDT) +From: Jani Nikula +To: notmuch@notmuchmail.org +Subject: [PATCH 1/2] nmbug-status: parametrize title and blurb in the page + header +Date: Thu, 13 Mar 2014 13:04:04 +0100 +Message-Id: + <4d46b302b1771bf4652792cb7b9f68c075cdff15.1394711823.git.jani@nikula.org> +X-Mailer: git-send-email 1.7.2.5 +In-Reply-To: +References: +In-Reply-To: +References: +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Thu, 13 Mar 2014 12:04:21 -0000 + +Prepare for more general use. +--- + 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 6b2572c..cb3901f 100755 +--- a/devel/nmbug/nmbug-status ++++ b/devel/nmbug/nmbug-status +@@ -249,7 +249,7 @@ _PAGES['html'] = HtmlPage( + + + +- Notmuch Patches ++ {title} + + + +-

Notmuch Patches

++

{title}

+

+ Generated: {date}
+-For more infomation see nmbug ++{blurb} +

+

Views

+ '''.format(date=datetime.datetime.utcnow().date(), ++ title='Notmuch Patches', ++ blurb='For more infomation see nmbug', + encoding=_ENCODING, + inter_message_padding='0.25em', + border_radius='0.5em'), +-- +1.7.2.5 + -- 2.26.2