From: W. Trevor King Date: Fri, 14 Feb 2014 16:48:53 +0000 (+1600) Subject: [PATCH v4 2/4] nmbug-status: Add inter-message padding X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a68a681c9c7ee464914cc69d6da7245ea091c50b;p=notmuch-archives.git [PATCH v4 2/4] nmbug-status: Add inter-message padding --- diff --git a/57/5e85bf03d30c1314277e9ade436e2085ecfa38 b/57/5e85bf03d30c1314277e9ade436e2085ecfa38 new file mode 100644 index 000000000..306cc2954 --- /dev/null +++ b/57/5e85bf03d30c1314277e9ade436e2085ecfa38 @@ -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 20147431FBF + for ; Fri, 14 Feb 2014 08:52:20 -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 ZsKcHk0HUltS for ; + Fri, 14 Feb 2014 08:52:13 -0800 (PST) +Received: from qmta04.westchester.pa.mail.comcast.net + (qmta04.westchester.pa.mail.comcast.net [76.96.62.40]) + by olra.theworths.org (Postfix) with ESMTP id 4C583431FB6 + for ; Fri, 14 Feb 2014 08:52:13 -0800 (PST) +Received: from omta11.westchester.pa.mail.comcast.net ([76.96.62.36]) + by qmta04.westchester.pa.mail.comcast.net with comcast + id SCri1n0020mv7h054GsC13; Fri, 14 Feb 2014 16:52:13 +0000 +Received: from odin.tremily.us ([24.18.63.50]) + by omta11.westchester.pa.mail.comcast.net with comcast + id SGqC1n008152l3L3XGqC2Z; Fri, 14 Feb 2014 16:50:13 +0000 +Received: from mjolnir.tremily.us (unknown [192.168.0.140]) + by odin.tremily.us (Postfix) with ESMTPS id D4397103A9A2; + Fri, 14 Feb 2014 08:50:11 -0800 (PST) +Received: (nullmailer pid 18386 invoked by uid 1000); + Fri, 14 Feb 2014 16:48:57 -0000 +From: "W. Trevor King" +To: notmuch@notmuchmail.org +Subject: [PATCH v4 2/4] nmbug-status: Add inter-message padding +Date: Fri, 14 Feb 2014 08:48:53 -0800 +Message-Id: + <335139452f4694ac1fdf30ac9e80f33d325949bc.1392395932.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=1392396733; + bh=Ct7c0JPWAqpLuz3bwdGGh8Xdv1tc/S40HZiPSBGXIC0=; + h=Received:Received:Received:Received:From:To:Subject:Date: + Message-Id; + b=aYhDAT2863Tldq2Es9pmvnAKwdm3R2oOL2Ne8/03cpDW9ljjZpsfa/LGXWwDc81h5 + kNQ9s8wRY1qyELad7lt/9659+3NY1uDbyD+P+jSacZbQ5GctSPqMsYilgVChgk7x4R + QJGS3Pwtv6BsstmIE2ABOtZNjsAKBU+Z1iJsJFogT8rp2BeWmIW+tPR1KXaEQvZSnd + 61FxgPOch/FVb9X6d+4FTrkpVLyw87pCEW7tnOveXaLt4b7ltgbu5AZyZTy/+OVRoB + 6xcL/SSy9UkF8QtWPomIlHIh6iBX1qn5dxtTcTl0tqb+KkZVPa6Fq2nVi5SpAVVHjN + tkhKp6Q0FLAPQ== +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: Fri, 14 Feb 2014 16:52:20 -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 a8bacab..018f191 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}; +@@ -287,6 +293,7 @@ For more infomation see nmbug +

+

Views

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