From b651a91b592eb6d1d73874404b00e670c9575ac7 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 1 Jun 2014 15:20:24 +1700 Subject: [PATCH] [PATCH v2 3/6] Move the generated date from the top of the page to the footer. --- 11/79760bf1e571e83b7309234729c53ac67382a1 | 129 ++++++++++++++++++++++ 1 file changed, 129 insertions(+) create mode 100644 11/79760bf1e571e83b7309234729c53ac67382a1 diff --git a/11/79760bf1e571e83b7309234729c53ac67382a1 b/11/79760bf1e571e83b7309234729c53ac67382a1 new file mode 100644 index 000000000..8b6ac6568 --- /dev/null +++ b/11/79760bf1e571e83b7309234729c53ac67382a1 @@ -0,0 +1,129 @@ +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 332CE431E64 + for ; Sat, 31 May 2014 15:21:11 -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 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001] + 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 Kv8uRElO0x57 for ; + Sat, 31 May 2014 15:21:07 -0700 (PDT) +Received: from qmta01.westchester.pa.mail.comcast.net + (qmta01.westchester.pa.mail.comcast.net [76.96.62.16]) + by olra.theworths.org (Postfix) with ESMTP id 2B2AF431FD5 + for ; Sat, 31 May 2014 15:21:03 -0700 (PDT) +Received: from omta20.westchester.pa.mail.comcast.net ([76.96.62.71]) + by qmta01.westchester.pa.mail.comcast.net with comcast + id 8mK31o0071YDfWL51mM1tt; Sat, 31 May 2014 22:21:01 +0000 +Received: from odin.tremily.us ([24.18.63.50]) + by omta20.westchester.pa.mail.comcast.net with comcast + id 8mM01o004152l3L3gmM0X3; Sat, 31 May 2014 22:21:01 +0000 +Received: from mjolnir.tremily.us (unknown [192.168.0.140]) + by odin.tremily.us (Postfix) with ESMTPS id C09DB11F0657; + Sat, 31 May 2014 15:20:59 -0700 (PDT) +Received: (nullmailer pid 13192 invoked by uid 1000); + Sat, 31 May 2014 22:20:38 -0000 +From: "W. Trevor King" +To: notmuch@notmuchmail.org +Subject: [PATCH v2 3/6] Move the generated date from the top of the page to + the footer. +Date: Sat, 31 May 2014 15:20:24 -0700 +Message-Id: + <0f0c291b3719e9ff627a456cb6de0cb94d7b1951.1401574293.git.wking@tremily.us> +X-Mailer: git-send-email 1.9.1.353.gc66d89d +In-Reply-To: +References: +In-Reply-To: +References: +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; + s=q20140121; t=1401574861; + bh=PgZnUbGYjcGLKzPw1sbakplci5TILcM51EoASmiIIyU=; + h=Received:Received:Received:Received:From:To:Subject:Date: + Message-Id; + b=H/Sa6JHExhKwdalx+E73LpZCvDsv0rFJwy4Sa2Bf46QXYmW6s/C5QV09+XztDEDJ8 + iGy3zW2fWs3XPu9DItozFTxFVgMhTON06ZdYHoR53hM7r+wXU12lZWu0qaKML59Hmt + 1KRfAk7wXhtY5Avwbf6zxyPaSAlaxfL4Za19c9B6IqSbnvE1BAM0czTZmw43d9szTn + zdx4cC3/S3BWLw3OTf3qGdPg4dqIj7+8xA2Xix6DTvMAV2oybXPFMT1uyR73Eelgwr + 5incrL79i0jwpO6xvDL+Sej2wvukpWjL2CgRHl5MeiNONQqvz9XjI2cjgtOLtDoC8J + igE3rcvieP0/w== +Cc: Tomi Ollila +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: Sat, 31 May 2014 22:21:11 -0000 + +From: Carl Worth + +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
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 | 18 +++++++++++++----- + 1 file changed, 13 insertions(+), 5 deletions(-) + +diff --git a/devel/nmbug/nmbug-status b/devel/nmbug/nmbug-status +index e137a90..c92d268 100755 +--- a/devel/nmbug/nmbug-status ++++ b/devel/nmbug/nmbug-status +@@ -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; ++ }} + + + +

{title}

+-

+-Generated: {date}
+ {blurb} +

+

Views

+-'''.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='\n\n', ++ footer=''' ++
++

Generated: {date} ++ ++ ++'''.format(date=datetime.datetime.utcnow().date()) + ) + + if args.list_views: +-- +1.9.1.353.gc66d89d + -- 2.26.2