1 Return-Path: <wking@tremily.us>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 39C39431FBD
\r
6 for <notmuch@notmuchmail.org>; Mon, 10 Feb 2014 10:45:03 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
8 X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"
\r
12 X-Spam-Status: No, score=0 tagged_above=-999 required=5
\r
13 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001]
\r
15 Received: from olra.theworths.org ([127.0.0.1])
\r
16 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
17 with ESMTP id ZgmNMfpUcvjl for <notmuch@notmuchmail.org>;
\r
18 Mon, 10 Feb 2014 10:44:57 -0800 (PST)
\r
19 Received: from qmta08.westchester.pa.mail.comcast.net
\r
20 (qmta08.westchester.pa.mail.comcast.net [76.96.62.80])
\r
21 by olra.theworths.org (Postfix) with ESMTP id 5AF15429E3E
\r
22 for <notmuch@notmuchmail.org>; Mon, 10 Feb 2014 10:44:02 -0800 (PST)
\r
23 Received: from omta16.westchester.pa.mail.comcast.net ([76.96.62.88])
\r
24 by qmta08.westchester.pa.mail.comcast.net with comcast
\r
25 id Qhyh1n0041uE5Es58ik2H3; Mon, 10 Feb 2014 18:44:02 +0000
\r
26 Received: from odin.tremily.us ([24.18.63.50])
\r
27 by omta16.westchester.pa.mail.comcast.net with comcast
\r
28 id Qii11n00t152l3L3cii2Dq; Mon, 10 Feb 2014 18:42:02 +0000
\r
29 Received: from mjolnir.tremily.us (unknown [192.168.0.140])
\r
30 by odin.tremily.us (Postfix) with ESMTPS id 6DD3710167C9;
\r
31 Mon, 10 Feb 2014 10:42:01 -0800 (PST)
\r
32 Received: (nullmailer pid 1287 invoked by uid 1000);
\r
33 Mon, 10 Feb 2014 18:40:46 -0000
\r
34 From: "W. Trevor King" <wking@tremily.us>
\r
35 To: notmuch@notmuchmail.org
\r
36 Subject: [PATCH v2 20/20] nmbug-status: Add inter-message padding
\r
37 Date: Mon, 10 Feb 2014 10:40:41 -0800
\r
39 <366eaf80c23346e9a6a8ae8251083f3774beb5bb.1392056624.git.wking@tremily.us>
\r
40 X-Mailer: git-send-email 1.8.5.2.8.g0f6c0d1
\r
41 In-Reply-To: <cover.1392056624.git.wking@tremily.us>
\r
42 References: <cover.1392056624.git.wking@tremily.us>
\r
43 In-Reply-To: <cover.1392056624.git.wking@tremily.us>
\r
44 References: <cover.1392056624.git.wking@tremily.us>
\r
45 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net;
\r
46 s=q20121106; t=1392057842;
\r
47 bh=QVJnvehNfrBFhIDIN2fzvrXlBCpN4Jm+EDUzF2p5Tpo=;
\r
48 h=Received:Received:Received:Received:From:To:Subject:Date:
\r
50 b=SIi5IHMD46eZqvzqQh3aOpOS3Ref9aeIRJWqA7uilqy3RTNDAS3sL7KiamZpRX6Pb
\r
51 HN+knJy+a4aaX5ZUehCMC2ZZWVWZmmvD9FaZYQCteylu21MfWeyy9IQWDwdFhN/MHZ
\r
52 0716wNThm04A9d35iuFgG30FRNJj/yZiEWqYYhZka7zOO2kkF0yJllwaXj96Q3CV3p
\r
53 0O8F4j9xQbIeyQplC6Ck9CVv6fK6lARjgdhLlvesLuf/NGjviaHLAhjb+GiZQ9U6EU
\r
54 SRF2z0mt471iWH0GiC+MbN3kMo8iXSN9qFny2Fp2zRMIGtUlag2Xykit4SsmkcTUeW
\r
56 Cc: Tomi Ollila <tomi.ollila@iki.fi>
\r
57 X-BeenThere: notmuch@notmuchmail.org
\r
58 X-Mailman-Version: 2.1.13
\r
60 List-Id: "Use and development of the notmuch mail system."
\r
61 <notmuch.notmuchmail.org>
\r
62 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
63 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
64 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
65 List-Post: <mailto:notmuch@notmuchmail.org>
\r
66 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
67 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
68 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
69 X-List-Received-Date: Mon, 10 Feb 2014 18:45:03 -0000
\r
71 We already had the tbody with a blank row separating threads (which is
\r
72 not colored); this commit adds a bit of spacing to separate messages
\r
73 within a thread. It will also add a bit of colored padding above the
\r
74 first message and below the final message, but the main goal is to add
\r
75 padding *between* two-row message blocks.
\r
78 thread-1, message-1, row-1 (class="message-first")
\r
79 thread-1, message-1, row-2 (class="message-last")
\r
81 spacer tbody with a blank row
\r
83 thread-2, message-1, row-1 (class="message-first")
\r
84 thread-2, message-1, row-2 (class="message-last")
\r
87 thread-2, message-2, row-1 (class="message-first")
\r
88 thread-2, message-2, row-2 (class="message-last")
\r
91 devel/nmbug/nmbug-status | 11 +++++++++--
\r
92 1 file changed, 9 insertions(+), 2 deletions(-)
\r
94 diff --git a/devel/nmbug/nmbug-status b/devel/nmbug/nmbug-status
\r
95 index 7209dd1..c4532f1 100755
\r
96 --- a/devel/nmbug/nmbug-status
\r
97 +++ b/devel/nmbug/nmbug-status
\r
98 @@ -208,11 +208,11 @@ class HtmlPage (Page):
\r
99 stream.write(' <tbody>\n')
\r
100 for message_display_data in thread:
\r
103 + ' <tr class="message-first">\n'
\r
104 ' <td>{date}</td>\n'
\r
105 ' <td><code>{message-id-term}</code></td>\n'
\r
108 + ' <tr class="message-last">\n'
\r
109 ' <td>{from}</td>\n'
\r
110 ' <td>{subject}</td>\n'
\r
112 @@ -255,6 +255,12 @@ _PAGES['html'] = HtmlPage(
\r
116 + tr.message-first td {{
\r
117 + padding-top: {inter_message_padding};
\r
119 + tr.message-last td {{
\r
120 + padding-bottom: {inter_message_padding};
\r
123 padding-left: {border_radius};
\r
124 padding-right: {border_radius};
\r
125 @@ -288,6 +294,7 @@ For more infomation see <a href="http://notmuchmail.org/nmbug">nmbug</a>
\r
127 '''.format(date=datetime.datetime.utcnow().date(),
\r
128 encoding=_ENCODING,
\r
129 + inter_message_padding='0.25em',
\r
130 border_radius='0.5em'),
\r
131 footer='</body>\n</html>\n',
\r