From f45d4f37a17d44c49fc052075f6a1436b98b6b5a Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 11 Feb 2014 10:40:41 +1600 Subject: [PATCH] [PATCH v2 20/20] nmbug-status: Add inter-message padding --- c9/d7adcf850a7594692b439c82acb689e3a30969 | 135 ++++++++++++++++++++++ 1 file changed, 135 insertions(+) create mode 100644 c9/d7adcf850a7594692b439c82acb689e3a30969 diff --git a/c9/d7adcf850a7594692b439c82acb689e3a30969 b/c9/d7adcf850a7594692b439c82acb689e3a30969 new file mode 100644 index 000000000..578b0ae70 --- /dev/null +++ b/c9/d7adcf850a7594692b439c82acb689e3a30969 @@ -0,0 +1,135 @@ +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 39C39431FBD + for ; Mon, 10 Feb 2014 10:45:03 -0800 (PST) +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 ZgmNMfpUcvjl for ; + Mon, 10 Feb 2014 10:44:57 -0800 (PST) +Received: from qmta08.westchester.pa.mail.comcast.net + (qmta08.westchester.pa.mail.comcast.net [76.96.62.80]) + by olra.theworths.org (Postfix) with ESMTP id 5AF15429E3E + for ; Mon, 10 Feb 2014 10:44:02 -0800 (PST) +Received: from omta16.westchester.pa.mail.comcast.net ([76.96.62.88]) + by qmta08.westchester.pa.mail.comcast.net with comcast + id Qhyh1n0041uE5Es58ik2H3; Mon, 10 Feb 2014 18:44:02 +0000 +Received: from odin.tremily.us ([24.18.63.50]) + by omta16.westchester.pa.mail.comcast.net with comcast + id Qii11n00t152l3L3cii2Dq; Mon, 10 Feb 2014 18:42:02 +0000 +Received: from mjolnir.tremily.us (unknown [192.168.0.140]) + by odin.tremily.us (Postfix) with ESMTPS id 6DD3710167C9; + Mon, 10 Feb 2014 10:42:01 -0800 (PST) +Received: (nullmailer pid 1287 invoked by uid 1000); + Mon, 10 Feb 2014 18:40:46 -0000 +From: "W. Trevor King" +To: notmuch@notmuchmail.org +Subject: [PATCH v2 20/20] nmbug-status: Add inter-message padding +Date: Mon, 10 Feb 2014 10:40:41 -0800 +Message-Id: + <366eaf80c23346e9a6a8ae8251083f3774beb5bb.1392056624.git.wking@tremily.us> +X-Mailer: git-send-email 1.8.5.2.8.g0f6c0d1 +In-Reply-To: +References: +In-Reply-To: +References: +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; + s=q20121106; t=1392057842; + bh=QVJnvehNfrBFhIDIN2fzvrXlBCpN4Jm+EDUzF2p5Tpo=; + h=Received:Received:Received:Received:From:To:Subject:Date: + Message-Id; + b=SIi5IHMD46eZqvzqQh3aOpOS3Ref9aeIRJWqA7uilqy3RTNDAS3sL7KiamZpRX6Pb + HN+knJy+a4aaX5ZUehCMC2ZZWVWZmmvD9FaZYQCteylu21MfWeyy9IQWDwdFhN/MHZ + 0716wNThm04A9d35iuFgG30FRNJj/yZiEWqYYhZka7zOO2kkF0yJllwaXj96Q3CV3p + 0O8F4j9xQbIeyQplC6Ck9CVv6fK6lARjgdhLlvesLuf/NGjviaHLAhjb+GiZQ9U6EU + SRF2z0mt471iWH0GiC+MbN3kMo8iXSN9qFny2Fp2zRMIGtUlag2Xykit4SsmkcTUeW + zLaGYEWY1Qe3g== +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: Mon, 10 Feb 2014 18:45:03 -0000 + +We already had the tbody with a blank row separating threads (which is +not colored); this commit adds a bit of spacing to separate messages +within a thread. It will also add a bit of colored padding above the +first message and below the final message, but the main goal is to add +padding *between* two-row message blocks. + + <--- new padding + thread-1, message-1, row-1 (class="message-first") + thread-1, message-1, row-2 (class="message-last") + <--- new padding + spacer tbody with a blank row + <--- new padding + thread-2, message-1, row-1 (class="message-first") + thread-2, message-1, row-2 (class="message-last") + <--- new padding + <--- new padding + thread-2, message-2, row-1 (class="message-first") + thread-2, message-2, row-2 (class="message-last") + <--- new padding +--- + devel/nmbug/nmbug-status | 11 +++++++++-- + 1 file changed, 9 insertions(+), 2 deletions(-) + +diff --git a/devel/nmbug/nmbug-status b/devel/nmbug/nmbug-status +index 7209dd1..c4532f1 100755 +--- a/devel/nmbug/nmbug-status ++++ b/devel/nmbug/nmbug-status +@@ -208,11 +208,11 @@ class HtmlPage (Page): + stream.write(' \n') + for message_display_data in thread: + stream.write(( +- ' \n' ++ ' \n' + ' {date}\n' + ' {message-id-term}\n' + ' \n' +- ' \n' ++ ' \n' + ' {from}\n' + ' {subject}\n' + ' \n' +@@ -255,6 +255,12 @@ _PAGES['html'] = HtmlPage( + table {{ + border-spacing: 0; + }} ++ tr.message-first td {{ ++ padding-top: {inter_message_padding}; ++ }} ++ tr.message-last td {{ ++ padding-bottom: {inter_message_padding}; ++ }} + td {{ + padding-left: {border_radius}; + padding-right: {border_radius}; +@@ -288,6 +294,7 @@ For more infomation see nmbug +

Views

+ '''.format(date=datetime.datetime.utcnow().date(), + encoding=_ENCODING, ++ inter_message_padding='0.25em', + border_radius='0.5em'), + footer='\n\n', + ) +-- +1.8.5.2.8.g0f6c0d1 + -- 2.26.2